Skip to content

ci: bump actions/checkout from 3.5.3 to 3.6.0 #28

ci: bump actions/checkout from 3.5.3 to 3.6.0

ci: bump actions/checkout from 3.5.3 to 3.6.0 #28

Workflow file for this run

name: Pull Request Validation
on:
pull_request: {}
push:
branches:
- main
jobs:
go-mod:
strategy:
matrix:
name:
- oldstable
- stable
- tip
include:
- name: oldstable
version: "1.20"
- name: stable
version: "1.21"
runs-on: ubuntu-latest
steps:
- name: Install Go v${{ matrix.name }}
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: ${{ matrix.version }}
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Check module vendoring
run: |
go mod tidy
go mod vendor
git diff --exit-code
build:
strategy:
matrix:
name:
- oldstable
- stable
- tip
include:
- name: oldstable
version: "1.20"
- name: stable
version: "1.21"
runs-on: ubuntu-latest
steps:
- name: Install Go v${{ matrix.name }}
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: ${{ matrix.version }}
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Go code prechecks
run: |
go build ./...
unit-test:
strategy:
matrix:
name:
- oldstable
- stable
- tip
include:
- name: oldstable
version: "1.20"
- name: stable
version: "1.21"
runs-on: ubuntu-latest
steps:
- name: Install Go v${{ matrix.name }}
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: ${{ matrix.version }}
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Go code prechecks
run: |
go test ./...
lint:
runs-on: ubuntu-latest
needs: unit-test
steps:
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Run golangci lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.53.3
# use our .golangci.yml and configure output to be logged in the GHA,
# in addition to annotating the commit. see
# https://github.com/golangci/golangci-lint-action/issues/119#issuecomment-981090648
# for output
args: --config=.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number
skip-cache: true