This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 455
100 lines (95 loc) · 2.75 KB
/
pr.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: 'PR'
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/prepare-install
- name: Build
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git branch --track ${{ github.base_ref }} origin/${{ github.base_ref }}
- name: Install
uses: ./.github/actions/prepare-install
- name: Build
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
- run: yarn format:since --base ${{ github.base_ref }}
- name: Check format
run: |
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
echo "All files formatted"
else
echo "Running format is required"
exit 1
fi
- run: yarn lint:since --base ${{ github.base_ref }}
- name: Check duplicate schema
run: |
node scripts/duplicate_schema_id.js ./
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 20
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/prepare-install
- name: Build
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
- run: yarn test:ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: coverage-final.json
name: codecov-umbrella
verbose: true
integration-test:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/prepare-install
- name: Build
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
- run: yarn nx run-many --target=test:integration --projects=lisk-framework
functional-test:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/prepare-install
- name: Build
uses: ./.github/actions/prepare-build
with:
cache-key: ${{ github.event.number }}
- run: yarn nx run-many --target=test:debug --projects=lisk-sdk-test