-
Notifications
You must be signed in to change notification settings - Fork 96
64 lines (50 loc) · 1.47 KB
/
ci-test.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
name: Checks
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
timeout-minutes: 40
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ci_node_index: [Long1,Long2,Rest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup path
run: sed -i -e "s,../..:,$PWD:," dist/ci/docker-compose.yml
- name: Run tests
run: docker-compose -f dist/ci/docker-compose.yml run test
env:
# Specifies how many jobs you would like to run in parallel,
# used for partitioning
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
# Use the index from matrix as an environment variable
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
- name: Submit coverage report to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
- name: Stop containers
if: always()
run: docker-compose -f dist/ci/docker-compose.yml down
linters:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate gocd config
run: cd gocd && sh generate.sh && git diff --exit-code
- name: Setup path
run: sed -i -e "s,../..:,$PWD:," dist/ci/docker-compose.yml
- name: Run Flaker
run: docker-compose -f dist/ci/docker-compose.yml run flaker
- name: Stop containers
if: always()
run: docker-compose -f dist/ci/docker-compose.yml down