generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 479
88 lines (81 loc) · 2.63 KB
/
continuous-integration.yml
File metadata and controls
88 lines (81 loc) · 2.63 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Continuous Integration Workflow
on:
pull_request:
branches:
- main
- 'release-**.x'
env:
TEST_TYPE: Integration-Test
permissions:
id-token: write # This is required for requesting the JWT
jobs:
build:
name: Build and Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Package
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Using Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Clean Install
run: npm ci
- name: Build
run: npm run build:release
audio-test:
name: Audio Test
runs-on: ubuntu-latest
steps:
- name: Checkout Package
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup GitHub Actions Host
id: setup
uses: ./.github/actions/setup-integration-test
with:
aws-role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_SDK_DEV }}
aws-role-session-name: ${{ env.TEST_TYPE }}
- name: Run Audio Test
if: steps.setup.outputs.integ_test_required == 'true'
working-directory: ./integration
run: npm run test -- --test-name AudioTest --host local --test-type integration-test --headless true
video-test:
name: Video Test
runs-on: ubuntu-latest
steps:
- name: Checkout Package
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup GitHub Actions Host
id: setup
uses: ./.github/actions/setup-integration-test
with:
aws-role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_SDK_DEV }}
aws-role-session-name: ${{ env.TEST_TYPE }}
- name: Run Video Test
if: steps.setup.outputs.integ_test_required == 'true'
working-directory: ./integration
run: npm run test -- --test-name VideoTest --host local --test-type integration-test --headless true
video-processing-test:
name: Video Processing Test
runs-on: ubuntu-latest
steps:
- name: Checkout Package
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup GitHub Actions Host
id: setup
uses: ./.github/actions/setup-integration-test
with:
aws-role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_SDK_DEV }}
aws-role-session-name: ${{ env.TEST_TYPE }}
- name: Run Video Processing Test
if: steps.setup.outputs.integ_test_required == 'true'
working-directory: ./integration
run: npm run test -- --test-name VideoProcessingTest --host local --test-type integration-test --headless true