blob: 23999b76a39a9ff26e244293a38ba759af136f10 [file] [log] [blame]
name: lint
on:
pull_request:
jobs:
Golang:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
- name: Set up gotestfmt
uses: haveyoudebuggedit/gotestfmt-action@v2
- name: Run tests
run: |
set -euo pipefail
go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Upload test log
uses: actions/upload-artifact@v3
if: always()
with:
name: test-log
path: /tmp/gotest.log
if-no-files-found: error
Pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
- name: Setup pre-commit
uses: pre-commit/action@v3.0.0