docs: mention the execution bit #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Build | |
run: make | |
- name: Test | |
run: make test | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Fetch git history and tags (for fixtures) | |
run: git fetch --tags origin main | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
# Integration testing with coverage requires >=1.20 | |
go-version: ">=1.20" | |
- name: Build | |
run: make | |
- name: Test | |
run: make test | |
- name: Generate coverage report | |
run: make coverage | |
- name: Generate integration tests coverage report | |
run: make coverage-acceptance | |
- name: Upload unit tests coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage-unit.txt | |
flags: unittests | |
- name: Upload integration tests coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage-integration.txt | |
flags: integration |