add ability for staff to freeze and unfreeze #142
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: Business Dash CI | |
on: | |
pull_request: | |
types: [assigned, synchronize] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
setup-job: | |
runs-on: ubuntu-20.04 | |
if: github.repository == 'bcgov/business-dashboard-ui' | |
steps: | |
- uses: actions/checkout@v4 | |
- run: "true" | |
linting: | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
run_install: true | |
- name: Linting | |
run: pnpm lint | |
unit-test: | |
needs: setup-job | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
run_install: true | |
- name: Run unit tests | |
run: pnpm test:unit | |
cypress-test: | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
run_install: true | |
- name: Set basic env | |
run: | | |
cp .env.example .env | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: chrome | |
build: pnpm build:local | |
start: pnpm preview | |
build-check: | |
needs: setup-job | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
run_install: true | |
- name: Build check | |
run: pnpm build |