-
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (46 loc) · 1.14 KB
/
Copy pathci.yaml
File metadata and controls
58 lines (46 loc) · 1.14 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: Hex Viewer (Build, Lint and Test)
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
# Install dependencies
- name: Install dependencies
run: npm ci
# Check formatting
- name: Check formatting (Prettier)
run: npm run format
# Lint
- name: Lint (ESLint)
run: npm run lint
# Run tests with coverage (enforces minimum thresholds)
- name: Run tests with coverage
run: npm run coverage
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
# Build the project
- name: Build the project
run: npm run build