-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: separate test workflow for main and PRs
* add test badge for main to README.md
- Loading branch information
Showing
3 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
6 changes: 2 additions & 4 deletions
6
.github/workflows/tests.yml → .github/workflows/test-full.yml
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Test Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: main | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
build: | ||
name: Test Pull Request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
# Full git history is needed to get a proper list of changed | ||
# files within `super-linter` | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
|
||
- name: Go Build | ||
run: CGO_ENABLED=0 go build -v -trimpath -ldflags '-w -s' ./main.go | ||
|
||
- name: Go test | ||
uses: robherley/go-test-action@v0 |
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