-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (42 loc) · 1.07 KB
/
ci.yml
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
name: Continuous Integration
on:
push:
branches:
- develop
- feature/*
- release/*
- hotfix/*
- renovate/*
pull_request:
branches:
- main
jobs:
integration:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [18.x, 20.x]
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: ⚙️ Enable corepack
if: inputs.enable-corepack == 'true'
shell: bash
working-directory: ${{ inputs.cwd }}
run: corepack enable
- name: Set up Node.js version ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: 📥 Install dependencies
uses: ./.github/actions/install
- name: Run tests on package
run: yarn test
- name: Update coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build package
run: yarn build