Skip to content

Merge pull request #32 from hashicorp/tsccr-auto-pinning/trusted/2023… #54

Merge pull request #32 from hashicorp/tsccr-auto-pinning/trusted/2023…

Merge pull request #32 from hashicorp/tsccr-auto-pinning/trusted/2023… #54

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@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
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@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: Test Coverage
path: coverage.html