Skip to content

downloader: pre/post request hooks (#22) #88

downloader: pre/post request hooks (#22)

downloader: pre/post request hooks (#22) #88

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
name: "Tests"
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Run unit tests
run: |
go install github.com/kyoh86/[email protected]
set -o pipefail
go test ./... | richgo testfilter
env:
RICHGO_FORCE_COLOR: 1
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.62
args: --issues-exit-code=1 --timeout 10m
only-new-issues: false
# the cache is already managed above, enabling it here
# gives errors when extracting
skip-pkg-cache: true
skip-build-cache: true