Skip to content

Merge pull request #10 from SFU-Blueprint/feature/github-ci #5

Merge pull request #10 from SFU-Blueprint/feature/github-ci

Merge pull request #10 from SFU-Blueprint/feature/github-ci #5

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
- staging
pull_request:
branches:
- main
- staging
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
cache: "npm"
cache-dependency-path: client/package-lock.json
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npx prettier . --check
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test