Skip to content

Switch Release to GH Container Registry #4

Switch Release to GH Container Registry

Switch Release to GH Container Registry #4

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
workflow_call:
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
go mod tidy
- name: Verify dependencies
run: go mod verify
- name: lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.52
args: --skip-files .*_test.go --enable wsl --enable misspell --out-format=colored-line-number --timeout 180s
- name: Build
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v cmd/arcade/arcade.go
- name: Test
run: go test -v ./...
- uses: actions/upload-artifact@v3
with:
name: build
path: arcade