Skip to content

Add multiple CI jobs #37

Add multiple CI jobs

Add multiple CI jobs #37

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
permissions:
contents: read
jobs:
go-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run: go build -v ./...
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run: go test -v ./...
go-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run: go fmt ./...
- run: git diff --exit-code