pipeline to check formatting and errors #4
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: CI Pipeline | |
on: | |
push: | |
branches: | |
- main | |
- ci_cd_pitchlake | |
pull_request: | |
branches: | |
- main | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
# cache: 'pnpm' | |
- name: Setup pnpm | |
run: npm install -g [email protected] | |
- name: Install dependencies with pnpm | |
run: pnpm install | |
# - name: Check formatting with Prettier | |
# run: pnpm prettier --check . | |
# env: | |
# CI: true | |
- name: Lint code with ESLint | |
run: pnpm lint | |
env: | |
CI: true | |
- name: Build the project | |
run: pnpm build | |
env: | |
CI: true |