Update ci.yml #12
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
Continuous-Integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Format Files | |
run: pnpm format | |
- name: Linting Files | |
run: pnpm lint:fix --force && pnpm lint --force | |
env: | |
ESLINT_USE_FLAT_CONFIG: ${{ secrets.ESLINT_USE_FLAT_CONFIG }} | |
- name: Building Files | |
run: pnpm build | |
- name: Start Files | |
run: pnpm start |