Update CI & CD pipelines #175
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
# .github/workflows/ci.yml | |
# Continuous Integration (CI) Workflow | |
name: ci | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- '*' | |
jobs: | |
format: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js environment with npm caching | |
uses: ./.github/actions/setup-node-and-deps | |
- name: Run Prettier | |
run: npm run format | |
lint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js environment with npm caching | |
uses: ./.github/actions/setup-node-and-deps | |
- name: Run ESLint | |
run: npm run lint | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js environment with npm caching | |
uses: ./.github/actions/setup-node-and-deps | |
- name: Run tests | |
run: npm run test |