Skip to content

Commit 4b5574b

Browse files
committed
Add test
1 parent 104a9ac commit 4b5574b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test-auth.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test cloud Auth
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- lio/cloudformation-template
7+
8+
jobs:
9+
test-auth:
10+
permissions:
11+
contents: read
12+
id-token: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: src/go.mod
22+
cache-dependency-path: src/go.sum
23+
24+
- name: Test AWS login
25+
run: go run ./cmd/cli whoami -Paws --debug
26+
working-directory: src
27+
28+
- name: Test GCP login
29+
run: go run ./cmd/cli whoami -Pgcp --debug
30+
working-directory: src

0 commit comments

Comments
 (0)