forked from aws-samples/aurora-dsql-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.18 KB
/
go-cm-integ-tests.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: pgx(go) Integration tests
on:
push:
branches: [ "main" ]
paths:
- 'go/cluster_management/**'
- '.github/workflows/go-cm-integ-tests.yml'
pull_request:
branches: [ "main" ]
paths:
- 'go/cluster_management/**'
- '.github/workflows/go-cm-integ-tests.yml'
# Give us a button to allow running the workflow on demand for testing.
workflow_dispatch:
inputs:
tags:
description: 'Manual Workflow Run'
required: false
type: string
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
# Explicitly set permissions, following the principle of least privilege
actions: read
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.2'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.GO_IAM_ROLE }}
aws-region: us-east-1
- name: Build & Run
working-directory: ./go/pgx
run: |
go env -w GOPROXY=direct
go test