Skip to content

Bump actions/setup-go from 5.1.0 to 5.2.0 #359

Bump actions/setup-go from 5.1.0 to 5.2.0

Bump actions/setup-go from 5.1.0 to 5.2.0 #359

Workflow file for this run

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
permissions:
contents: read
name: build-test
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
with:
go-version: 1.22.x
- run: go env
- name: go lint
run: make lint-go
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
with:
go-version: 1.22.x
- run: go env
- name: go build
run: go build -v ./...
- name: go test
run: go test -v ./...
- name: build catalog-cd
run: go build -o catalog-cd -v .
- name: Upload catalog-cd binary
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: catalog-cd-bin
path: catalog-cd