Updated Entity team split #30
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: Application Status CI | |
on: | |
pull_request: | |
types: [assigned, synchronize] | |
paths: | |
- "apps/application-status/**" | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./apps/application-status | |
jobs: | |
setup-job: | |
runs-on: ubuntu-20.04 | |
if: github.repository == 'bcgov/sbc-producthub' | |
steps: | |
- uses: actions/checkout@v3 | |
- run: "true" | |
linting: | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [20.6.1] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: build | |
run: | | |
pnpm run build-check | |
- name: Linting | |
run: | | |
pnpm run lint | |
testing-coverage: | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [20.6.1] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: build | |
run: | | |
pnpm run build-check | |
- name: Testing | |
run: | | |
pnpm run test --coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
flags: applicationstatus | |
name: codecov-application-status | |
fail_ci_if_error: true | |
build-check: | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [20.6.1] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: run test | |
run: | | |
pnpm run build-check |