forked from OurHike/OurHike
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.2 KB
/
Copy pathclient-tests.yml
File metadata and controls
49 lines (40 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Client tests
on:
# `main` only. Matching every branch here would double every PR's CI:
# pushing to a PR branch fires BOTH the push event and the pull_request
# event for the same commit, running each job twice for an identical
# result. The pull_request trigger below already covers branches.
#
# This run is still worth keeping for main itself - it is post-merge
# validation against the real merge commit, which is exactly what caught
# the flaky staleness boundary test in #32 (green on the PR, red on the
# merge).
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: client/package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Check formatting
run: npm run format:check
- name: Typecheck
run: npm run typecheck
- name: Run tests
run: npm test
- name: Build
run: npm run build