chore(deps): update swc monorepo #758
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: Check | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- rec | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
backend-check: | |
env: | |
node_version: 18 | |
defaults: | |
run: | |
working-directory: backend | |
name: Backend Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Set example env | |
run: cp .env.example .env | |
- name: Lint check | |
run: npm run lint | |
- name: Format check | |
run: npm run prettier | |
- name: Unit & Integration tests | |
run: npm run test | |
- name: Check dependencies usage | |
run: npm run depcheck | |
frontend-check: | |
env: | |
node_version: 18 | |
defaults: | |
run: | |
working-directory: frontend | |
name: Frontend Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Set example env | |
run: cp .env.example .env | |
- name: Lint check | |
run: npm run lint | |
- name: Format check | |
run: npm run prettier | |
- name: Check dependencies usage | |
run: npm run depcheck |