forked from nubificus/urunc
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.64 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
name: CI
on:
pull_request:
branches: ["main"]
types: [synchronize, labeled]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
validate-files-and-commits:
name: Lint Files & commits
if: |
contains(github.event.pull_request.labels.*.name, 'ok-to-test') &&
!contains(github.event.pull_request.labels.*.name, 'skip-lint')
uses: ./.github/workflows/validate-files-and-commits.yml
secrets: inherit
lint:
name: Lint code
if: |
contains(github.event.pull_request.labels.*.name, 'ok-to-test') &&
!contains(github.event.pull_request.labels.*.name, 'skip-lint')
uses: ./.github/workflows/lint.yml
secrets: inherit
build:
#needs: [validate-files-and-commits, lint]
name: Build
if: |
contains(github.event.pull_request.labels.*.name, 'ok-to-test') &&
!contains(github.event.pull_request.labels.*.name, 'skip-build')
uses: ./.github/workflows/build.yml
secrets: inherit
unit_test:
#needs: [validate-files-and-commits, lint]
name: Unit tests
if: |
contains(github.event.pull_request.labels.*.name, 'ok-to-test') &&
!contains(github.event.pull_request.labels.*.name, 'skip-build')
uses: ./.github/workflows/unit_test.yml
secrets: inherit
#FIXME: run for arm64
vm_test:
needs: [build,unit_test]
name: E2E test
if: |
contains(github.event.pull_request.labels.*.name, 'ok-to-test') &&
!contains(github.event.pull_request.labels.*.name, 'skip-build')
uses: ./.github/workflows/vm_test.yml
secrets: inherit