Skip to content

ci: Pin all gh actions to commit SHAs #84

ci: Pin all gh actions to commit SHAs

ci: Pin all gh actions to commit SHAs #84

Workflow file for this run

name: PR Workflow
on:
pull_request:
types: [synchronize, opened, reopened]
branches: ["main"]
permissions:
contents: read
jobs:
linter:
name: Linter
runs-on: ubuntu-latest
timeout-minutes: 10 # Sets a timeout of 10 minutes for this job (default is 1 minute)
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: "^1.25"
cache: false
- name: Check Go Formatting
run: |
files=$(gofmt -l .) && echo $files && [ -z "$files" ]
- name: Golang CI Lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.7.2
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: "^1.25"
- name: Unit tests
run: |
make test_unit