Skip to content

Merge pull request #392 from temporalio/dependabot/go_modules/google.… #841

Merge pull request #392 from temporalio/dependabot/go_modules/google.…

Merge pull request #392 from temporalio/dependabot/go_modules/google.… #841

Workflow file for this run

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@v3
- 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