-
Notifications
You must be signed in to change notification settings - Fork 2
151 lines (142 loc) · 4.09 KB
/
default.yml
File metadata and controls
151 lines (142 loc) · 4.09 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: Default
on:
push:
branches-ignore:
- master
jobs:
test:
name: Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- uses: gradle/gradle-build-action@v2
with:
arguments: clean test
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: |
**/build/test-results
**/build/reports
db-test:
name: DB test
runs-on: ubuntu-20.04
services:
localstack:
image: localstack/localstack
env:
SERVICES: dynamodb
ports:
- 4566:4566
env:
AWS_EC2_METADATA_DISABLED: true
DYNAMODB_URL: http://localhost:4566
AWS_DEFAULT_REGION: us-east-2
AWS_ACCESS_KEY_ID: accessKey
AWS_SECRET_ACCESS_KEY: secretKey
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- run: votes/dynamodb/src/test/resources/seed.sh
- run: youtube/dynamodb/src/test/resources/seed.sh
- run: kotlin/dynamodb/src/test/resources/seed.sh
- run: dialogs/dynamodb/src/test/resources/seed.sh
- run: quizoji/dynamodb/src/test/resources/seed.sh
- run: monies/dynamodb/src/test/resources/seed.sh
- run: pins/dynamodb/src/test/resources/seed.sh
- run: times/timezones/dynamodb/src/test/resources/seed.sh
- run: english/language-rooms/dynamodb/src/test/resources/seed.sh
- run: english/urban-word-of-the-day/dynamodb/src/test/resources/seed.sh
- uses: gradle/gradle-build-action@v2
with:
arguments: clean dbTest
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: |
**/build/test-results
**/build/reports
integration-test:
name: Integration test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- uses: gradle/gradle-build-action@v2
with:
arguments: clean integrationTest
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: |
**/build/test-results
**/build/reports
cdk-test:
name: CDK test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- uses: gradle/gradle-build-action@v2
with:
arguments: clean shadowJar
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
working-directory: .deploy/lambda
- run: npm test
working-directory: .deploy/lambda
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: |
**/junit.xml
test-publish:
name: Publish test results
runs-on: ubuntu-20.04
needs:
- test
- db-test
- integration-test
- cdk-test
if: always()
steps:
- uses: actions/download-artifact@v3
with:
name: test-results
- uses: mikepenz/action-junit-report@v3
with:
report_paths: |-
**/test-results/test/TEST-*.xml
**/test-results/dbTest/TEST-*.xml
**/test-results/integrationTest/TEST-*.xml
**/junit.xml
check_name: |-
Test reports
DB test reports
Integration test reports
CDK test reports
include_passed: true
github_token: ${{ secrets.GITHUB_TOKEN }}