-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.31 KB
/
ci.yml
File metadata and controls
50 lines (48 loc) · 1.31 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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
name: CI (Node ${{ matrix.version }}-${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
version: ['22.21.1', '24.11.1']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Node
uses: actions/setup-node@v4.3.0
with:
node-version: ${{ matrix.version }}
- name: Install Dependencies
run: npm ci
- name: Save error log
uses: actions/upload-artifact@v4.6.2
if: ${{ failure() }}
with:
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
path: npm-debug.log
- name: Lint
run: npm run lint
- name: Check Cycles
run: npm run check:cycles
- name: Test
run: npm test
- name: Generate Playwright Types
run: npm run types -w @knighted/css-playwright-fixture
- name: Check Types
run: npm run check-types
- name: Report Coverage
uses: codecov/codecov-action@v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Pack
run: npm pack --pack-destination=packages/css --workspace=@knighted/css