26 lines
578 B
YAML
26 lines
578 B
YAML
name: test
|
|
|
|
on:
|
|
- workflow_dispatch
|
|
- push
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Set up Go Environment
|
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
cache: true
|
|
- name: Run Tests
|
|
env:
|
|
DOCKER_MIRROR: docker.mirror.hashicorp.services
|
|
run: go test -v ./...
|