Skip to content

Commit

Permalink
Update codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
keke125 authored Nov 29, 2023
1 parent a7f13c3 commit 06fd65f
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
name: Workflow for Codecov java maven
on: [push, pull_request]
env:
NA_DB_URL: 'jdbc:mariadb://localhost:3306/NA'
NA_DB_USER: 'NA'
NA_DB_PASSWORD: ${{ secrets.DBPassword }}
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: Start MariaDB
uses: getong/mariadb-action@v1.1
with:
mysql database: 'NA'
mysql user: 'NA'
mysql password: ${{ secrets.DBPassword }}
- name: Install dependencies
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Run tests and collect coverage
run: mvn -B test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}

0 comments on commit 06fd65f

Please sign in to comment.