Skip to content

Feature/v2 exploration #2

Feature/v2 exploration

Feature/v2 exploration #2

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
# Initialize the env variables. These get set after the repo is checked out
# because they depend on files in the repo.
env:
NODE_VERSION: ''
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Checkout Repo
id: checkout_repo
uses: actions/checkout@v4
# Sets the environment variables from the env.sh script.
- name: Set Environment Variables
id: set_env_vars
run: .github/workflows/scripts/env.sh
# 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 TestComponent -- -p "examples/components"