Skip to content

gha: set default permissions, and add golangci-lint #114

gha: set default permissions, and add golangci-lint

gha: set default permissions, and add golangci-lint #114

Workflow file for this run

name: Test
# Default to 'contents: read', which grants actions to read commits.
#
# If any permission is set, any permission not included in the list is
# implicitly set to "none".
#
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
contents: read
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x]
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Test
run: go test -v ./...
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.63
- name: Test Blake3
run: go test -v ./...
working-directory: blake3
- name: Lint Blake3
uses: golangci/golangci-lint-action@v6
with:
version: v1.63