diff options
| author | jannfis <jann@mistrust.net> | 2020-08-05 14:56:33 +0200 |
|---|---|---|
| committer | jannfis <jann@mistrust.net> | 2020-08-05 14:56:33 +0200 |
| commit | 533b0396d2a7d7290283b299a3d3cf9644c11bff (patch) | |
| tree | face324e2397e093eb2c6213bf3e029bb490b2bc /.github | |
| parent | 74c3828e4f25207c7cc8a2b69f29a1c2a39755a0 (diff) | |
Welcome GitHub actions
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci-tests.yaml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml new file mode 100644 index 0000000..c1ccef3 --- /dev/null +++ b/.github/workflows/ci-tests.yaml @@ -0,0 +1,45 @@ +name: Integration tests +on: + push: + branches: + - 'master' + - 'release-*' + pull_request: + branches: + - 'master' + +jobs: + check-go: + name: Ensure Go modules synchronicity + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Golang + uses: actions/setup-go@v1 + with: + go-version: '1.14.4' + - name: Download all Go modules + run: | + go mod download + - name: Check for tidyness of go.mod and go.sum + run: | + go mod tidy + git diff --exit-code -- . + test: + name: Ensure unit tests are passing + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Golang + uses: actions/setup-go@v1 + with: + go-version: '1.14.4' + - name: Run tests + run: | + make test + - name: Upload code coverage information to codecov.io + uses: codecov/codecov-action@v1 + with: + file: coverage.out
\ No newline at end of file |
