1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

ci: always run all code checks regardless of failures (#2239)

This commit is contained in:
Zack Pollard 2023-04-12 21:17:27 +01:00 committed by GitHub
parent d314805caf
commit 017a34fc10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,6 @@ concurrency:
jobs: jobs:
e2e-tests: e2e-tests:
name: Run end-to-end test suites name: Run end-to-end test suites
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -25,24 +24,62 @@ jobs:
server-unit-tests: server-unit-tests:
name: Run server unit test suites and checks name: Run server unit test suites and checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run tests - name: Run npm install
run: cd server && npm ci && npm run check:all run: npm ci
- name: Run linter
run: npm run lint
if: ${{ !cancelled() }}
- name: Run formatter
run: npm run format
if: ${{ !cancelled() }}
- name: Run tsc
run: npm run check
if: ${{ !cancelled() }}
- name: Run unit tests & coverage
run: npm run test:cov
if: ${{ !cancelled() }}
web-unit-tests: web-unit-tests:
name: Run web unit test suites and checks name: Run web unit test suites and checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run tests - name: Run npm install
run: cd web && npm ci && npm run check:all run: npm ci
- name: Run linter
run: npm run lint
if: ${{ !cancelled() }}
- name: Run formatter
run: npm run format
if: ${{ !cancelled() }}
- name: Run svelte checks
run: npm run check
if: ${{ !cancelled() }}
- name: Run unit tests & coverage
run: npm run test:cov
if: ${{ !cancelled() }}
mobile-unit-tests: mobile-unit-tests:
name: Run mobile unit tests name: Run mobile unit tests