Merge pull request #171 from olekgo/master #144
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: main | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ["1.21", "1.20"] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Go installation | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Go dependencies installation | |
run: go get -d ./... | |
- name: Build | |
run: go build ./... | |
- name: Test | |
run: go test ./... | |
- name: Vet | |
run: go vet ./... |