-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (75 loc) · 2.38 KB
/
smoke-tests-build.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Smoke Test against Build
on:
# schedule:
# # Every weekday at 5am
# - cron: "0 5 * * 1-5"
push:
concurrency:
group: smoke-test-build
cancel-in-progress: false
env:
ENVIRONMENT: ${{ secrets.TEST_ENVIRONMENT }}
CORE_STUB_URL: ${{ secrets.CORE_STUB_URL }}
PRIVATE_API_GATEWAY: ${{ secrets.DEV_PRIVATE_API_GATEWAY }}
CORE_STUB_USERNAME: ${{ secrets.CORE_STUB_USERNAME }}
CORE_STUB_PASSWORD: ${{ secrets.CORE_STUB_PASSWORD }}
FRONTEND: ${{ secrets.BUILD_FRONTEND }}
permissions:
id-token: write
contents: read
jobs:
smoke:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
environment:
name: development
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: true
- name: Setup SAM
uses: aws-actions/setup-sam@v2
with:
use-installer: true
- name: Assume AWS Role
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.DEPLOYMENT_ROLE_ARN }}
aws-region: eu-west-2
- name: Set up Node
uses: actions/setup-node@v4
with:
cache: npm
node-version: 20
- name: Install dependencies
run: cd feature-tests && npm install
- name: Run Feature Tests
run: cd feature-tests && tagFilter=@post-merge npm run test:browser:ci
- name: Get test results history
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
ref: LIME-Cucumber-gh-pages
path: LIME-Cucumber-gh-pages
- name: Cucumber HTML Report action
uses: PavanMudigonda/[email protected]
id: test-report
if: always()
with:
test_results: feature-tests/target/cucumber-report
gh_pages: LIME-Cucumber-gh-pages
results_history: feature-tests/results-history
- name: Publish Github Pages
if: always() && ${{ github.actor != 'dependabot[bot]' }}
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: LIME-Cucumber-gh-pages
publish_dir: feature-tests/results-history
keep_files: true