-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.53 KB
/
Copy pathci.yml
File metadata and controls
58 lines (45 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup Node.js
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '22'
- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: '1.3.14'
# Dependabot edits package.json but cannot regenerate bun.lock, so a frozen
# install fails on every one of its pull requests -- which is the sole reason
# they are all red. Typecheck, lint and test still run either way; only the
# lockfile constraint is relaxed, and only for that actor.
- name: Install dependencies
run: bun install ${{ github.actor == 'dependabot[bot]' && '--no-frozen-lockfile' || '--frozen-lockfile' }}
- name: Check formatting
run: bun run format:check
- name: Typecheck
run: bun run typecheck
- name: Lint
run: bun run lint
- name: Test
run: bun run test:ci
- name: Check Expo project health
run: bunx expo-doctor
- name: Audit critical dependency vulnerabilities
run: bun audit --audit-level=critical