mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
26 lines
439 B
YAML
26 lines
439 B
YAML
name: Go Build and Release
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
test:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: ./go.mod
|
|
|
|
- name: Run tests
|
|
run: go test -v ./...
|