mirror of
https://github.com/immich-app/data.immich.app.git
synced 2026-09-30 13:23:26 +08:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
47 lines
967 B
YAML
47 lines
967 B
YAML
name: Test
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./frontend
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
|
|
with:
|
|
node-version-file: './frontend/.nvmrc'
|
|
|
|
- name: Run npm install
|
|
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
|
|
run: npm test
|
|
if: ${{ !cancelled() }}
|