Skip to content

chore(deps): update github-actions deps #102

chore(deps): update github-actions deps

chore(deps): update github-actions deps #102

Workflow file for this run

---
name: Build and Test
on:
pull_request:
branches: [main]
push:
branches: [main]
paths-ignore:
- README.md
- catalog-info.yaml
- renovate.json
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
with:
go-version: '1.23'
- name: Install golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
with:
version: v1.62.0
args: --timeout=5m
only-new-issues: true
- name: Run linter
run: golangci-lint run
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21', '1.22', '1.23']
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: make test
build:
name: build
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: '1.23'
cache: true
- name: Build
run: |
VERSION=${{ github.ref_name }}
if [[ "${{ github.ref_type }}" == "branch" ]]; then
VERSION="${VERSION}-${GITHUB_SHA::8}"
fi
go build -ldflags "-X main.version=${VERSION}" -o bin/sigstore-certificate-maker ./...
- name: Upload binary
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: sigstore-certificate-maker
path: bin/sigstore-certificate-maker