-
Notifications
You must be signed in to change notification settings - Fork 153
42 lines (42 loc) · 1.23 KB
/
run-e2e-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
name: run-e2e-tests
on:
workflow_dispatch: {}
jobs:
run:
#########################
# Force Github action to run only a single job at a time (based on the group name)
# This is to prevent "race-condition" in building e2e tests infrastructure
#########################
concurrency:
group: e2e-tests
runs-on: ubuntu-latest
permissions:
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v2
#########################
# Release new version
#########################
- name: "Use NodeJS 14"
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install packages
run: |
npm ci
npm run lerna-ci
- name: Configure AWS credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
aws-region: eu-west-1
- name: Run integration tests
run: npm run lerna-test:e2e
- name: Test packaging
run: |
npm run lerna-package
cd examples/cdk
npm install ../../packages/**/dist/aws-lambda-powertools-*
npm run test