Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
on: [push, pull_request]
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:
Expand All @@ -16,6 +27,14 @@ jobs:
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
Loading