Make access defensive and fix environment variable reference. #313
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: ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
typescript: | |
name: typescript | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- name: lint | |
run: pnpm -r lint | |
- name: type-check | |
run: pnpm -r type-check | |
- name: prettier | |
run: pnpm prettier -c . | |
- name: build | |
run: pnpm -r build | |
- name: test | |
run: pnpm -r test | |
playwright: | |
name: playwright | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
test: | |
- 'test:e2e:production' | |
- 'test:e2e:development' | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- name: get playwright version | |
id: pw | |
run: echo "version=$(cat apps/nextjs/package.json | jq -r '.devDependencies."@playwright/test"')" >> $GITHUB_OUTPUT | |
- name: install playwright | |
run: pnpx playwright@${{ steps.pw.outputs.version }} install | |
- name: test | |
run: pnpm -r ${{ matrix.test }} |