-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.36 KB
/
integration.yml
File metadata and controls
59 lines (48 loc) · 1.36 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
55
56
57
58
59
name: Integration Tests
on:
workflow_call:
workflow_dispatch:
push:
branches: [main]
paths:
- 'examples/**'
- 'test/integration/**'
- '*.ts'
- 'files/**'
concurrency:
group: integ-${{ github.ref }}
cancel-in-progress: false
jobs:
integ:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
id-token: write
contents: read
env:
AWS_REGION: eu-central-1
CI: true
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Configure AWS credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.AWS_INTEG_ROLE_ARN }}
aws-region: ${{ env.AWS_REGION }}
- name: Install root dependencies
run: bun install --frozen-lockfile
- name: Register local package globally
run: bun link
- name: Install example app dependencies
run: |
bun install --frozen-lockfile --cwd examples/basic
bun install --frozen-lockfile --cwd examples/streaming
bun install --frozen-lockfile --cwd examples/infra
- name: Build adapter
run: bun run prepublishOnly
- name: Run integration tests
run: bun run integ:deploy-test-destroy
- name: Cleanup (always)
if: always()
run: bun run integ:cleanup