Use GNUmakefile for GNU make #38
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: | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: [ubuntu-latest] | |
go: [ '1.20', '1.21' ] | |
runs-on: ${{matrix.runner}} | |
name: OS ${{matrix.runner}} Go ${{matrix.go}} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
check-latest: true | |
- name: Show Go Version and environment | |
run: | | |
go version | |
go env | |
- name: Install dependencies | |
run: | | |
sudo apt install golint | |
make | |
- name: Run tests | |
run: | | |
make test |