Docs with OpenAPI context, courtesy GitHub Copilot #9
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: npm test | |
on: | |
- push | |
env: | |
VITE_BROWSERSTACK_USERNAME: "${{ secrets.VITE_BROWSERSTACK_USERNAME }}" | |
VITE_BROWSERSTACK_KEY: "${{ secrets.VITE_BROWSERSTACK_KEY }}" | |
jobs: | |
test-node-v20: | |
name: "node.js v20" | |
runs-on: ubuntu-latest | |
environment: BrowserStackEnv | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- run: npm install | |
- run: npm run build | |
- run: npm test | |
test-node-v18: | |
name: "node.js v18" | |
runs-on: ubuntu-latest | |
if: ${{ always() }} | |
needs: [test-node-v20] | |
environment: BrowserStackEnv | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- run: npm install | |
- run: npm run build | |
- run: npm test |