-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (40 loc) · 1.12 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
name: CI
on: [push, pull_request]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- authorization-agent
- application
- data-model
- test-utils
- utils
- service
- api-messages
steps:
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Check out repository
uses: actions/checkout@v4
- name: Modify .npmrc
run: echo '//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}' >> .npmrc
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpx turbo run build
- name: Run tests
working-directory: ./packages/${{ matrix.package }}
run: pnpm run test
- name: Submit code coverage
uses: codecov/codecov-action@v4
with:
flags: ${{ matrix.package }}
directory: ${{ github.workspace }}/packages/${{ matrix.package }}/coverage