Waypoint/Actions: Add way to assign actions to templates and apps #942
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
unit-tests: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} | |
- name: Setup Go | |
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | |
with: | |
cache: true | |
go-version-file: 'go.mod' | |
cache-dependency-path: go.sum | |
- name: Install Dependencies | |
env: | |
GOPRIVATE: 'github.com/hashicorp/*' | |
run: | | |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3 | |
go mod tidy | |
- name: Run Unit Tests and Linter | |
run: make test-ci | |
- name: Upload Unit Test Coverage Artifact | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: coverage-unit | |
path: coverage.html |