smoke-test #234
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@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
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 |