Skip to content

Commit

Permalink
updated README and added github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vic-tsang committed Jan 7, 2025
1 parent 8b90709 commit 8aeef33
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/go-cm-integ-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The subdirectories contain code examples for connecting and using Aurora DSQL in
| C++ | [cluster_management](cpp/cluster_management) |
| C# (dotnet) | [cluster_management](dotnet/cluster_management) |
| Java | [cluster_management](java/cluster_management) |
| Go | [cluster_management](go/cluster_management) |
| Javascript | [cluster_management](javascript/cluster_management) |
| Python | [cluster_management](python/cluster_management) |
| Ruby | [cluster_management](ruby/cluster_management) |
Expand Down

0 comments on commit 8aeef33

Please sign in to comment.