Skip to content

Release/3.1.0 rc5

Release/3.1.0 rc5 #4

Workflow file for this run

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 }}
# Config a dummy git user for use in the repo initialization.
- name: Config Git User
id: config_git_user
run: |
git config user.name "Test User"
git config user.email "[email protected]"
# 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"