Feature/photos #2
Workflow file for this run
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: Node.js CI | |
on: | |
# push: | |
# branches: | |
# - main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: ./.github/actions/install-packages | |
- name: Lint check | |
run: pnpm lint | |
typecheck: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: ./.github/actions/install-packages | |
- name: Type check | |
run: pnpm typecheck | |
unit-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: ./.github/actions/install-packages | |
- name: Unit test | |
run: pnpm vitest | |
integration-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
uses: ./.github/actions/install-packages | |
- name: Integration test | |
run: pnpm cypress:ci | |
env: | |
SUPABASE_URL: ${{ secrets.NUXT_SUPABASE_PROJECT_URL }} | |
SUPABASE_KEY: ${{ secrets.NUXT_SUPABASE_API_KEY }} | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress videos | |
path: ./tests/cypress/videos |