Skip to content

Create dependabot.yml #95

Create dependabot.yml

Create dependabot.yml #95

Workflow file for this run

# 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@v3
- name: Install Go
uses: actions/setup-go@v4
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