ci: upgrade actions #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
lint: | |
name: GolangCI Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up go | |
uses: actions/setup-go@v4 | |
- name: Run linter | |
uses: golangci/golangci-lint-action@v3 | |
tests: | |
name: Run unit tests with the race detector enabled | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up go | |
uses: actions/setup-go@v4 | |
- name: Run unit tests | |
run: go test -v -race ./... |