-
Notifications
You must be signed in to change notification settings - Fork 20
54 lines (47 loc) · 1.35 KB
/
rust-sqlx-integ-test.yml
File metadata and controls
54 lines (47 loc) · 1.35 KB
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
53
54
name: Rust SQLx integration Tests
permissions: {}
on:
push:
branches: [ main ]
paths:
- 'rust/sqlx/**'
- '.github/workflows/rust-sqlx-integ-test.yml'
pull_request:
branches: [ main ]
paths:
- 'rust/sqlx/**'
- '.github/workflows/rust-sqlx-integ-test.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:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
id-token: write # required by aws-actions/configure-aws-credentials
concurrency:
# Ensure only 1 job uses the workflow cluster at a time.
group: ${{ github.workflow }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Rust
run: rustup update
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.RUST_IAM_ROLE }}
aws-region: us-east-1
- name: Configure and run integration tests for SQLx
working-directory: ./rust/sqlx
env:
CLUSTER_USER: "admin"
CLUSTER_ENDPOINT: ${{ secrets.RUST_SQLX_CLUSTER_ENDPOINT }}
REGION: ${{ secrets.RUST_SQLX_CLUSTER_REGION }}
run: |
cargo run