Skip to content

build: Bump actions/setup-go from 4 to 5 #24

build: Bump actions/setup-go from 4 to 5

build: Bump actions/setup-go from 4 to 5 #24

Workflow file for this run

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
name: Build
defaults:
run:
shell: bash
jobs:
lint:
name: Lint files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Run tests
runs-on: 'ubuntu-latest'
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
check-latest: true
- run: go test -v -cover ./...
build:
name: Build binary
runs-on: 'ubuntu-latest'
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
check-latest: true
- name: Build
env:
GOOS: linux
GOARCH: amd64
run: |
script/build