-
Notifications
You must be signed in to change notification settings - Fork 146
37 lines (35 loc) · 1.15 KB
/
targeted-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
on:
workflow_call:
inputs:
pattern:
required: true
type: string
permissions:
contents: read # for actions/checkout to fetch code
jobs:
targeted-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.0.0
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: go.mod
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Setup Terraform
run: |
export TF_VERSION=1.3.9
wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
unzip -q terraform_${TF_VERSION}_linux_amd64.zip
mv terraform /usr/local/bin
terraform --version
- name: Setup Kustomize
if: "!github.event.pull_request.head.repo.fork"
uses: fluxcd/pkg/actions/kustomize@30c101fc7c9fac4d84937ff4890a3da46a9db2dd # main
- name: Run tests
run: |
make install-envtest
make TARGET="${{ inputs.pattern }}" target-test