-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (71 loc) · 2.34 KB
/
smoke-test-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
name: Smoke Test against Build
on:
schedule:
# Every weekday at 5am
- cron: "0 5 * * 1-5"
push:
jobs:
smoke:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
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: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: zulu
cache: gradle
- uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
cache-overwrite-existing: true
- name: Build Cache
uses: actions/cache@v4
with:
path: |
.gradle/
*/build/
*/**/build/
!*/build/reports
!*/build/jacoco
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Run Smoke test against build environment
env:
BROWSER: chrome-headless
ENVIRONMENT: ${{ secrets.TEST_ENVIRONMENT }}
CUCUMBER_PUBLISH_ENABLED: true
coreStubUrl: ${{ secrets.CORE_STUB_URL }}
coreStubUsername: ${{ secrets.CORE_STUB_USERNAME }}
coreStubPassword: ${{ secrets.CORE_STUB_PASSWORD }}
orchestratorStubUrl: ${{ secrets.ORCHESTRATOR_STUB_URL }}
run: cd acceptance-tests && ./gradlew smokeTestBuild
- 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: acceptance-tests/target/cucumber-report
gh_pages: LIME-Cucumber-gh-pages
results_history: acceptance-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: acceptance-tests/results-history
keep_files: true