Skip to content

Merge pull request #28 from hashicorp/dependabot/go_modules/golang.or… #46

Merge pull request #28 from hashicorp/dependabot/go_modules/golang.or…

Merge pull request #28 from hashicorp/dependabot/go_modules/golang.or… #46

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Setup Go
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
with:
cache: true
go-version-file: 'go.mod'
cache-dependency-path: go.sum
- name: Install Dependencies
run: |
go mod download
go mod tidy
- name: Run Tests
run: make test-ci
- name: Upload Coverage Artifact
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
with:
name: Test Coverage
path: coverage.html