Skip to content

torfstack is running pr checks #60

torfstack is running pr checks

torfstack is running pr checks #60

Workflow file for this run

name: pr-checks
run-name: ${{ github.actor }} is running pr checks
on:
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
tests:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v5
with:
go-version: '^1.24.4'
- name: Set up gotestfmt
uses: gotesttools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: |
set -euo pipefail
go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Upload test log
uses: actions/upload-artifact@v4
if: always()
with:
name: test-log
path: /tmp/gotest.log
if-no-files-found: error
linter:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v5
with:
go-version: '^1.24.4'
- name: run linter
uses: golangci/golangci-lint-action@v6