test: event controller, service test code added #167
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Spring Test" | |
on: | |
push: | |
branches: | |
- "*" | |
- "*/*/*" | |
paths-ignore: | |
- "k8s/prod/backend.yaml" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "k8s/prod/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 }} |