mirror of
https://github.com/immich-app/packages.git
synced 2026-09-30 13:33:01 +08:00
44 lines
963 B
YAML
44 lines
963 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
|
|
if: false
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Mise
|
|
uses: immich-app/devtools/actions/use-mise@035e80a7d4355d5f087ffb95db9e4a0944c04e56 # use-mise-action-v1.1.3
|
|
|
|
- name: Run npm install
|
|
run: pnpm -r install
|
|
|
|
- name: Run linter
|
|
run: pnpm lint
|
|
if: ${{ !cancelled() }}
|
|
|
|
- name: Run formatter
|
|
run: pnpm format
|
|
if: ${{ !cancelled() }}
|
|
|
|
- name: Run unit tests
|
|
run: pnpm test
|
|
if: ${{ !cancelled() }}
|
|
|
|
- name: Run medium tests
|
|
run: pnpm test:medium
|
|
if: ${{ !cancelled() }}
|