From e04554f6f5352712e6f0a5236a76c7e6d5aba5ed Mon Sep 17 00:00:00 2001 From: lilgreenbird Date: Tue, 20 Feb 2024 19:42:41 -0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..369ceea90 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Codecov + +on: + workflow_dispatch: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: mvn install -Pjre11 -DskipTests=true -Dmaven.javadoc.skip=true -B -V + + - name: Run tests + env: + connectionString: ${{ secrets.MSSQL_JDBC_TEST_CONNECTION_PROPERTIES }} + run: mvn -Pjre11 -Dmssql_jdbc_test_connection_properties=$connectionString -DexcludedGroups=xAzureSQLDB,NTLM,xUnix,MSI,reqExternalSetup,clientCertAuth,fedAuth,kerberos,DTC -B test + + - name: Code coverage report + run: mvn -Pjre11 jacoco:report + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4-beta + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}