smoke-test #166
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: smoke-test | |
on: | |
# Always run smoke tests upon a successful | |
# "ci" job completion on "main". | |
workflow_run: | |
workflows: ['ci'] | |
branches: [main] | |
types: [completed] | |
workflow_dispatch: | |
jobs: | |
examples: | |
if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }} | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up PNPM | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8.15.6 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Test examples | |
run: ./config/scripts/smoke-test.sh |