Skip to content

Commit

Permalink
chore: use go mod tools
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Nov 12, 2024
1 parent 7e9f083 commit f8734c1
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,38 @@ on:
workflow_call:
push:
branches:
- main
- release/*
- main
- release/*
pull_request:
branches:
- main
- main

jobs:
test:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: make test
- uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Go Test Results
path: .test/reports/**-test.xml
reporter: java-junit
fail-on-error: 'true'
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: Test Reports
path: .test/reports/**
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./tools/go.mod
cache-dependency-path: |
tools/go.sum
go.sum
- run: make test
- uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Go Test Results
path: .test/reports/**-test.xml
reporter: java-junit
fail-on-error: "true"
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: Test Reports
path: .test/reports/**

lint:
runs-on: ubuntu-latest
Expand All @@ -44,4 +47,4 @@ jobs:
with:
go-version-file: ./go.mod
check-latest: true
- run: make lint
- run: make lint

0 comments on commit f8734c1

Please sign in to comment.