-
Notifications
You must be signed in to change notification settings - Fork 15
66 lines (66 loc) · 2.21 KB
/
integration-test.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Integration Tests
on:
workflow_dispatch: {}
jobs:
integTest:
permissions:
checks: write
contents: write
actions: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: main
repository: aws-amplify/amplify-cli-export-construct
path: amplify-cli-export-construct
- name: Setup Node.js
uses: actions/setup-node@v2.2.0
with:
node-version: 14.17.6
- name: Install Amplify CLI
run: |
npm i @aws-amplify/cli@10.0.0
npm i -g @aws-amplify/cli@10.0.0
which amplify
amplify_path=$(which amplify)
echo "AMPLIFY_PATH=$amplify_path" >> $GITHUB_ENV
echo ${{ env.AMPLIFY_PATH }}
- name: Checkout
uses: actions/checkout@v2
with:
repository: aws-amplify/amplify-cli
ref: v10.0.0
path: amplify-cli
- name: Build Amplify E2E Core
run: |
cd amplify-cli
yarn dev-build
cd ~/
- name: Link E2E Core
run: |
cd amplify-cli-export-construct/integ-test
ln -s ../../amplify-cli/packages/amplify-e2e-core amplify-e2e-core
ls -l .
cd ~/
- name: Run Test
run: |
cd amplify-cli-export-construct
npm ci
amplify -v
./node_modules/jest/bin/jest.js --verbose --ci --collect-coverage
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
FACEBOOK_APP_ID: fbAppId
FACEBOOK_APP_SECRET: fbAppSecret
GOOGLE_APP_ID: gglAppID
GOOGLE_APP_SECRET: gglAppSecret
AMAZON_APP_ID: amaznAppID
AMAZON_APP_SECRET: amaznAppSecret
APPLE_APP_ID: com.fake.app
APPLE_TEAM_ID: 2QLEWNDK6K
APPLE_KEY_ID: 2QLZXKYJ8J
APPLE_PRIVATE_KEY: MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgIltgNsTgTfSzUadYiCS0VYtDDMFln/J8i1yJsSIw5g+gCgYIKoZIzj0DAQehRANCAASI8E0L/DhR/mIfTT07v3VwQu6q8I76lgn7kFhT0HvWoLuHKGQFcFkXXCgztgBrprzd419mUChAnKE6y89bWcNw