Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,31 @@ concurrency:
permissions: {}

jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
strategy:
matrix:
component: [backend, frontend]
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
cache-dependency-path: ${{ matrix.component }}/package-lock.json
- name: Install dependencies
working-directory: ${{ matrix.component }}
run: npm ci
- name: Run linting
working-directory: ${{ matrix.component }}
run: npm run lint

# https://github.com/bcgov/quickstart-openshift-helpers
deploy-test:
name: Deploy (TEST)
needs: [lint]
uses: ./.github/workflows/.deployer.yml
secrets: inherit
with:
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,31 @@ concurrency:
permissions: {}

jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
strategy:
matrix:
component: [backend, frontend]
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
cache-dependency-path: ${{ matrix.component }}/package-lock.json
- name: Install dependencies
working-directory: ${{ matrix.component }}
run: npm ci
- name: Run linting
working-directory: ${{ matrix.component }}
run: npm run lint

# https://github.com/bcgov/action-builder-ghcr
builds:
name: Builds
needs: [lint]
permissions:
packages: write
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -51,7 +73,7 @@ jobs:

results:
name: PR Results
needs: [builds, deploys, tests]
needs: [lint, builds, deploys, tests]
if: always()
runs-on: ubuntu-24.04
steps:
Expand Down
Loading