This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
Merge pull request #19 from Shopify/dependabot/go_modules/gopkg.in/ya… #71
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: ci | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
jobs: | |
golangci: | |
name: golang lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.16 | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.39 | |
gomodtidy: | |
name: go mod tidy check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v1 | |
with: | |
go-version: "1.16.x" | |
- run: go mod tidy | |
- run: git diff --exit-code -- go.mod go.sum | |
tests: | |
name: golang test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v1 | |
with: | |
go-version: "1.16.x" | |
- run: go test -cover -race ./... |