Bump actions/checkout from 3 to 4 #99
Workflow file for this run
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
# Source: https://github.com/mvdan/github-actions-golang | |
on: [push, pull_request] | |
name: Test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.19.x, 1.20.x] | |
platform: [ubuntu-latest, macos-latest] # You can test on windows-latest as well | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Init | |
run: make init NAME=github.com/ashishb/golang-template-repo | |
- name: Fetch modules | |
run: touch go.sum && go mod tidy | |
- name: Build | |
run: make build_debug | |
- name: Build Linux | |
run: make build_linux | |
# - name: Lint | |
# run: go get -u golang.org/x/lint/golint && make lint | |
- name: Verify no formatting issues | |
# Source: https://github.com/golang/go/issues/24230 | |
run: test -z $(go fmt ./src/...) | |
- name: Test | |
run: make test | |