Skip to content

Commit c51f7ad

Browse files
fix aciotns
1 parent 8a259c3 commit c51f7ad

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
19
jobs:
210
build:
311
runs-on: ubuntu-latest
@@ -25,7 +33,7 @@ jobs:
2533

2634
- name: Wait for MySQL to be ready
2735
run: |
28-
until mysqladmin ping -h localhost -u sampleuser -p"samplepassword" --silent; do
36+
until mysqladmin ping -h mysql -u sampleuser -p"samplepassword" --silent; do
2937
echo "Waiting for MySQL to be ready..."
3038
sleep 2
3139
done
@@ -34,4 +42,11 @@ jobs:
3442
run: ./gradlew build
3543

3644
- name: Run JaCoCo Test Report
37-
run: ./gradlew jacocoTestReport
45+
run: ./gradlew jacocoTestReport
46+
47+
- name: Upload JaCoCo Test Report
48+
uses: actions/upload-artifact@v3
49+
with:
50+
name: jacoco-report
51+
path: build/reports/jacoco/test/html
52+

0 commit comments

Comments
 (0)