Skip to content

Commit

Permalink
deps: v1.0.0 for bcgov-nr/action-test-and-analyse (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Aug 14, 2023
1 parent c83c483 commit 047e6c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:

jobs:
tests-java:
name : Quarkus API Unit Tests
name: Quarkus API Unit Tests
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-22.04
defaults:
Expand All @@ -40,8 +40,8 @@ jobs:
- 5432:5432
strategy:
matrix:
distribution: [ "temurin" ]
java-version: [ "17" ]
distribution: ["temurin"]
java-version: ["17"]
steps:
- uses: actions/checkout@v3

Expand All @@ -60,7 +60,7 @@ jobs:
run: mvn -f pom.xml clean package

tests-python:
name : Python API Unit Tests
name: Python API Unit Tests
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-22.04
defaults:
Expand All @@ -82,7 +82,7 @@ jobs:
- 5432:5432
strategy:
matrix:
python-version: [ "3.11" ]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -144,11 +144,13 @@ jobs:
- dir: backend
sonar_projectKey: quickstart-openshift_backend
token: SONAR_TOKEN_BACKEND
triggers: ('backend/')
- dir: frontend
sonar_projectKey: quickstart-openshift_frontend
token: SONAR_TOKEN_FRONTEND
triggers: ('frontend/')
steps:
- uses: bcgov-nr/action-test-and-analyse@v0.0.1
- uses: bcgov-nr/action-test-and-analyse@v1.0.0
with:
commands: |
npm ci
Expand All @@ -163,7 +165,8 @@ jobs:
-Dsonar.sources=src
-Dsonar.tests.inclusions=**/*spec.ts
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar_project_token: ${{ secrets[matrix.token] }}
sonar_token: ${{ secrets[matrix.token] }}
triggers: ${{ matrix.triggers }}

# https://github.com/marketplace/actions/aqua-security-trivy
trivy:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ test-report.xml
**/dist
**/out
**/target

# VSCode
.vscode/

0 comments on commit 047e6c4

Please sign in to comment.