-
Notifications
You must be signed in to change notification settings - Fork 49
39 lines (32 loc) · 784 Bytes
/
ci.yaml
File metadata and controls
39 lines (32 loc) · 784 Bytes
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
name: CI
on:
push:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22, 24]
name: Examples Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: |
corepack enable
yarn install
- name: Lint workspaces
run: yarn lint
- name: Build workspaces
run: yarn build
- name: Tests workspaces
run: yarn test:ci
- name: Upload coverage
uses: codecov/codecov-action@v5
if: matrix.node == '18'
with:
token: ${{ secrets.CODECOV_TOKEN }}