-
Notifications
You must be signed in to change notification settings - Fork 9
73 lines (71 loc) · 2.14 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: |
touch .env
echo GH_COMMIT_SHA="${{ github.event.pull_request.head.sha }}" >> .env
echo CODECOV_TOKEN="${{ secrets.CODECOV_TOKEN }}" >> .env
- run: pnpm install
- run: pnpm build
- run: pnpm compile
- run: pnpm format:check
- run: pnpm lint:check
- run: pnpm test:cov
- name: Upload XCM SDK coverage report to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: packages/sdk
flags: xcm-sdk
fail_ci_if_error: false
verbose: true
- name: Upload XCM Analyser coverage report to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: packages/xcm-analyser
flags: xcm-analyser
fail_ci_if_error: false
verbose: true
- name: Upload XCM Router coverage report to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: packages/xcm-router
flags: xcm-router
fail_ci_if_error: false
verbose: true
- name: Upload Visualizator BE coverage report to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: apps/visualizator-be
flags: visualizator-be
fail_ci_if_error: false
verbose: true
- name: Upload XCM API coverage report to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: apps/xcm-api
flags: xcm-api
fail_ci_if_error: false
verbose: true