Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

review comment cleanup and using matrix #10

review comment cleanup and using matrix

review comment cleanup and using matrix #10

Workflow file for this run

name: Test and Build
on:
push:
branches:
- '*'
pull_request: {}
concurrency: build-${{ github.ref }}
jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
version: ["1.16"] #value taken from go.mod
experimental: [false]
include:
- version: "1.21"
experimental: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.version }}
- run: "go vet ./..."
- name: Lint
uses: dominikh/[email protected]
with:
version: "2022.1.1"
install-go: false
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Test
run: "make test"
snapshot-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Set GOLANG_VERSION
run: |
echo "GOLANG_VERSION=$(go version | awk '{ print $3 }')" >> $GITHUB_ENV
- name: Snapshot Build
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --snapshot --skip-publish --clean