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:
Jean-Philippe Evrard
2021-03-22 14:28:37 +01:00
committed by Christian Kotzbauer
parent 5930d733f8
commit 3671c27e37
2 changed files with 28 additions and 0 deletions

View File

@@ -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

View File

@@ -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