Update gitCommandTimeout to 15m (#603) #707
Workflow file for this run
This file contains hidden or 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
on: [push, pull_request] | |
name: ci | |
env: | |
GO111MODULE: on | |
jobs: | |
validate-changes: | |
strategy: | |
matrix: | |
go-version: [1.15.11] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v2 | |
- name: Cache go modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Check fmt | |
run: bash scripts/check_gofmt.sh | |
- name: Vet | |
run: make vet | |
- name: Run all tests | |
run: | | |
# Certain tests need sudo to run on github actions, | |
# so run them all as sudo. | |
# su doesn't use the same go version, so preserve env. | |
# See https://github.com/actions/virtual-environments/issues/731 | |
export GOPATH="$HOME/go" | |
sudo ln -f -s $GOROOT/bin/* /usr/bin/ | |
sudo -E PATH="$PATH" make ci | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
timeout-minutes: 2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |