Create codeql.yml #112
Workflow file for this run
This file contains 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: 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: 'NA' | |
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: 'NA' | |
- 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_TOKEN }} |