Bump golang.org/x/net from 0.17.0 to 0.23.0 #870
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: Tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: 1.23 | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
- name: WriteGoList | |
run: go list -json -m all > go.list | |
- name: nancy | |
uses: sonatype-nexus-community/nancy-github-action@main | |
- name: Run Keycloak | |
run: | | |
make start-keycloak | |
sleep 15 | |
- name: Unit Tests | |
run: | | |
go test -failfast -race -cover -coverprofile=coverage.txt -covermode=atomic -p 100 -cpu 1,2 -bench . -benchmem > test.log | |
cat test.log | |
- name: Failed Logs | |
if: failure() | |
run: | | |
cat test.log | |
docker ps | |
docker logs keycloak | |
- name: CodeCov | |
uses: codecov/[email protected] | |
with: | |
file: ./coverage.txt | |
# Publish benchmarks for the main branch only | |
- name: Store Benchmark Result | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
uses: rhysd/[email protected] | |
with: | |
# What benchmark tool the output.txt came from | |
tool: "go" | |
# Where the output from the benchmark tool is stored | |
output-file-path: test.log | |
# Push and deploy GitHub pages branch automatically | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
# Updating go report card for main branch only | |
- name: GoReportCard | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
run: curl --fail --request POST "https://goreportcard.com/checks" --data "repo=github.com/Nerzal/gocloak" |