2021-07-01 12:53:24 +02:00
|
|
|
name: Checks
|
2021-06-18 11:44:29 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2021-07-01 12:53:24 +02:00
|
|
|
tests:
|
2021-06-18 12:33:18 +02:00
|
|
|
timeout-minutes: 40
|
2021-06-18 11:44:29 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-07 17:10:37 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
ci_node_index: [Long1,Long2,Rest]
|
2021-06-18 11:44:29 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2021-06-29 22:57:23 +02:00
|
|
|
uses: actions/checkout@v2
|
2021-06-18 11:44:29 +02:00
|
|
|
|
|
|
|
- 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
|
2022-03-07 17:10:37 +01:00
|
|
|
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 }}
|
2021-06-18 11:44:29 +02:00
|
|
|
|
2021-06-18 12:45:14 +02:00
|
|
|
- name: Submit coverage report to Codecov
|
2021-06-29 22:57:23 +02:00
|
|
|
uses: codecov/codecov-action@v1.5.2
|
2021-06-18 12:45:14 +02:00
|
|
|
with:
|
|
|
|
fail_ci_if_error: true
|
|
|
|
|
2021-06-18 11:44:29 +02:00
|
|
|
- name: Stop containers
|
|
|
|
if: always()
|
|
|
|
run: docker-compose -f dist/ci/docker-compose.yml down
|
2021-06-18 12:45:14 +02:00
|
|
|
|
2021-07-01 12:53:24 +02:00
|
|
|
linters:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-07-12 10:15:51 +02:00
|
|
|
- name: Validate gocd config
|
|
|
|
run: cd gocd && sh generate.sh && git diff --exit-code
|
|
|
|
|
2021-07-01 12:53:24 +02:00
|
|
|
- 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
|
|
|
|
|