-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 937 Bytes
/
codecov.yaml
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
name: "Spring Test"
on:
push:
branches:
- "*"
- "*/*/*"
paths-ignore:
- "k8s/deploy/backend.yaml"
pull_request:
branches:
- main
paths-ignore:
- "k8s/deploy/backend.yaml"
permissions:
contents: write
actions: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "adopt"
- name: Spring test
run: |
./gradlew clean test
env:
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}