mirror of
https://github.com/kubereboot/kured.git
synced 2026-04-20 16:46:58 +00:00
Add go tests
Without this patch, go test bugs can appear without getting caught, neither in periodics, nor in PRs. This should fix it.
This commit is contained in:
committed by
Christian Kotzbauer
parent
5930d733f8
commit
3671c27e37
14
.github/workflows/on-pr.yaml
vendored
14
.github/workflows/on-pr.yaml
vendored
@@ -4,6 +4,20 @@ on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
pr-gotest:
|
||||
name: Run go tests
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: run tests
|
||||
run: go test -json ./... > test.json
|
||||
- name: Annotate tests
|
||||
if: always()
|
||||
uses: guyarb/golang-test-annoations@v0.3.0
|
||||
with:
|
||||
test-results: test.json
|
||||
|
||||
pr-shellcheck:
|
||||
name: Lint bash code with shellcheck
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
14
.github/workflows/periodics-daily.yaml
vendored
14
.github/workflows/periodics-daily.yaml
vendored
@@ -5,6 +5,20 @@ on:
|
||||
- cron: "30 1 * * *"
|
||||
|
||||
jobs:
|
||||
periodics-gotest:
|
||||
name: Run go tests
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: run tests
|
||||
run: go test -json ./... > test.json
|
||||
- name: Annotate tests
|
||||
if: always()
|
||||
uses: guyarb/golang-test-annoations@v0.3.0
|
||||
with:
|
||||
test-results: test.json
|
||||
|
||||
periodics-mark-stale:
|
||||
name: Mark stale issues and PRs
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user