65 lines
1.5 KiB
YAML
Raw Normal View History

2021-07-01 12:53:24 +02:00
name: Checks
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
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ci_node_index: [Long1,Long2,Rest]
steps:
- name: Checkout
uses: actions/checkout@v2
- 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@v1.5.2
with:
fail_ci_if_error: true
- name: Stop containers
if: always()
run: docker-compose -f dist/ci/docker-compose.yml down
2021-07-01 12:53:24 +02:00
linters:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- 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