Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Jul 21, 2023
1 parent 324b0c5 commit 73693b3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/on-push-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
on:
push:
branches: [main]

jobs:
test-go:
uses: ./.github/workflows/wf-test-go.yml
29 changes: 29 additions & 0 deletions .github/workflows/wf-test-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v3
with:
args: --timeout=10m
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: |
go install github.com/mfridman/tparse@latest
- run: |
set -o pipefail
go test ./... -json | tee ./go-test.out | tparse -all
- if: always()
run: |
tparse -file ./go-test.out -format markdown >> "$GITHUB_STEP_SUMMARY"

0 comments on commit 73693b3

Please sign in to comment.