-
Notifications
You must be signed in to change notification settings - Fork 131
47 lines (44 loc) · 1.35 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
---
name: Integration Tests
on: [workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies with NPM
id: installation
run: |
npm ci --no-optional
- name: Run Tests
id: testing
run: |
npm run lint
npm run test:ci
- name: Add Coverage Report
if: github.event_name == 'pull_request'
id: coverage-report
uses: 5monkeys/cobertura-action@v13
continue-on-error: true
with:
path: coverage/cobertura-coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 40
- name: Upload Artifacts
id: upload-artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: coverage
- name: Run Integration Tests
id: integration-testing
env:
TST_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
TST_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BUILD_ACCT_AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_ACCT_AWS_ACCESS_KEY_ID }}
BUILD_ACCT_AWS_SECRET_ACCESS_KEY: ${{ secrets.BUILD_ACCT_AWS_SECRET_KEY_ID }}
run: |
npm run test:integration