Skip to content

GitHub Workflow: Format and Unit Test #3

GitHub Workflow: Format and Unit Test

GitHub Workflow: Format and Unit Test #3

Workflow file for this run

name: test
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.2
- name: Format the source code and check for differences
run: go fmt ./... && git diff --exit-code HEAD
- name: Run unit tests
run: go test -v ./...