Skip to content

Bump google-github-actions/setup-gcloud from 1 to 2 #859

Bump google-github-actions/setup-gcloud from 1 to 2

Bump google-github-actions/setup-gcloud from 1 to 2 #859

Workflow file for this run

name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master, staging, v2 ]
pull_request:
types: [opened, synchronize, edited, ready_for_review]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '1.19'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: make ci
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Checkout code
uses: actions/checkout@v4
- name: Check Headers
run: make check-headers
- name: Check Tidy
run: make check-tidy
- name: Run golangci-lint
uses: golangci/[email protected]
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49
args: --timeout=10m