Skip to content

new PAT v2

new PAT v2 #28

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: CI Toolkit
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GH_REPORT_COV }}
jobs:
build:
runs-on: ubuntu-latesti
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.x'
- name: Run go vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Run golint
run: golint ./...
- name: Run tests
run: go test -race -vet=off ./...
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
env:
GITHUB_TOKEN: ${{ secrets.GH_REPORT_COV }}