Skip to content

Commit 68fe5e3

Browse files
committed
1 parent 241227a commit 68fe5e3

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
7+
pull_request_target:
88

99
permissions:
1010
actions: read
@@ -15,31 +15,14 @@ permissions:
1515

1616
jobs:
1717
tf-test:
18-
name: ${{ matrix.tf }} Test
18+
name: 🧪 ${{ matrix.tf }} test
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
2222
tf: [tofu, terraform]
2323
steps:
24-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25-
26-
- name: Aqua Cache
27-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
28-
if: ${{ !github.event.act }} # Don't enable the cache step if we're using act for testing
29-
with:
30-
path: ~/.local/share/aquaproj-aqua
31-
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('aqua.yaml')}}
32-
restore-keys: |
33-
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
34-
35-
- name: Install Aqua
36-
uses: aquaproj/aqua-installer@5e54e5cee8a95ee2ce7c04cb993da6dfad13e59c # v3.2.1
24+
- uses: masterpointio/github-action-tf-test@c3b619f3bca9e4f482b9e0fb3166ab3f02d9d54c # v1.0.0
3725
with:
38-
aqua_version: v2.48.1
39-
40-
- name: Aqua Install
41-
shell: bash
42-
run: aqua install --tags ${{ matrix.tf }}
43-
44-
- run: ${{ matrix.tf }} init
45-
- run: ${{ matrix.tf }} test
26+
tf_type: ${{ matrix.tf }}
27+
aws_role_arn: ${{ vars.TF_TEST_AWS_ROLE_ARN }}
28+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)