Release/3.1.0 rc2 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it. | |
- name: Checkout Repo | |
id: checkout_repo | |
uses: actions/checkout@v4 | |
# Gets the Node version from .nvmrc and sets it as an environment variable. | |
- name: Set Node Version | |
id: set_node_version | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
# Setup Node. | |
- name: Setup Node | |
id: setup_node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
# Installs npm and composer dependencies. | |
- name: Install | |
id: install | |
run: npm ci | |
# Lint all files. | |
- name: Lint | |
id: lint | |
run: npm run lint | |
# Runs a test theme creation with all options set to skip prompt. Note we also set | |
# the path to `tests` and enable the `verbose` option for debugging. | |
- name: Create Theme | |
id: create_theme | |
run: npm test test-theme -- -v -p "tests" -N "Test Theme" -X "1.0.0" -T "parent-theme" -U "https://github.com/dreamsicle-io/test" -B "https://github.com/dreamsicle-io/test/issues" -R "[email protected]:dreamsicle-io/test.git" -r "git" -d "Just another WordPress theme." -A "Dreamsicle" -E "[email protected]" -u "https://www.dreamsicle.io" -L "gpl-3.0" -t "accessibility-ready,translation-ready" -W "6.1.0" -w "6.4.0" -F "test" -C "Test" -c "TEST" |