Polished example etc #37
This file contains hidden or 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: Run Smoke Tests | |
on: | |
push: | |
branches: ['main'] | |
workflow_dispatch: # allows manual run from GitHub UI | |
jobs: | |
run-smoke-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # adjust as needed | |
- name: Print Node.js version | |
run: node --version | |
- name: Install dependencies | |
run: npm ci # npm clean-install (installs without changing package-lock.json) | |
- name: Build # So that dist/ gets updated too. | |
run: npm run build | |
- name: Run Specific Test | |
run: | | |
echo "Running test: ${{ github.event.inputs.testName }}" | |
npm run ci:test:smoke |