fix: workflow definition initialization race #877
Workflow file for this run
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: Linux | |
on: | |
push: | |
branches: | |
- master | |
- stable | |
tags-ignore: | |
- '**' | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
golang: | |
name: Build (Go ${{ matrix.go }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: true | |
matrix: | |
go: [ stable ] | |
os: [ ubuntu-latest ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod tidy && go mod download | |
- name: Golang tests | |
run: make test_coverage | |
- uses: codecov/[email protected] # Docs: <https://github.com/codecov/codecov-action> | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage-ci/summary.txt | |
fail_ci_if_error: false |