Skip to content

Commit

Permalink
feat: bump builder, use package cleanup (#484)
Browse files Browse the repository at this point in the history
* feat: bump builder, use package cleanup

* Trigger builds

* Cleanup

* Test

* Test

* Test

* Test

* Test

* Test

* Stop cleaning db

* Stop cleaning admin

* Stop cleaning public

* Restore workflows

* Update tester action

* Update tester action

* Sonar project_token renamed
  • Loading branch information
DerekRoberts authored Oct 27, 2023
1 parent 3af835d commit 56e8146
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/merge-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
triggers: ('public/' 'libs/')
steps:
- uses: actions/checkout@v3
- uses: bcgov-nr/action-builder-ghcr@v1.1.2
- uses: bcgov-nr/action-builder-ghcr@v2.0.0
with:
package: ${{ matrix.package }}
build_context: ${{ matrix.build_context }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ jobs:
triggers: ('public/' 'libs/')
steps:
- uses: actions/checkout@v3
- uses: bcgov-nr/action-builder-ghcr@v1.1.2
- uses: bcgov-nr/action-builder-ghcr@v2.0.0
with:
package: ${{ matrix.package }}
build_context: ${{ matrix.build_context }}
build_file: ${{ matrix.build_file }}
keep_versions: 100
tag: ${{ github.event.number }}
tag_fallback: test
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ jobs:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-22.04
steps:
- uses: bcgov-nr/action-test-and-analyse@v0.0.1
- uses: bcgov-nr/action-test-and-analyse@v1.1.0
with:
commands: |
npm ci
npm run test-unit
dir: api
node_version: 16
sonar_args: >
-Dsonar.exclusions=**/test/**/*,.github/**/*,**/migrations/**/*
-Dsonar.javascript.lcov.reportPaths=coverage/api/lcov.info
-Dsonar.organization=bcgov-sonarcloud
-Dsonar.project.monorepo.enabled=false
-Dsonar.projectKey=nr-fom
sonar_project_token: ${{ secrets.SONAR_TOKEN }}
sonar_project: ${{ secrets.SONAR_TOKEN }}

# https://github.com/marketplace/actions/aqua-security-trivy
trivy:
Expand Down

0 comments on commit 56e8146

Please sign in to comment.