Skip to content

Merge pull request #28 from COSI-Lab/container-restart #52

Merge pull request #28 from COSI-Lab/container-restart

Merge pull request #28 from COSI-Lab/container-restart #52

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: go build -v ./...
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Verify modfile
run: go mod verify
- name: Vet
run: go vet ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Lint
run: golint -set_exit_status ./...
- name: Check code formatting using gofmt
uses: Jerome1337/[email protected]
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Test
run: go test -v ./...