chore(client): migrate from react-scripts
build to vite
#6
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
name: "React Front-End CI checks" | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- stable | |
- unstable | |
paths: | |
- 'client/**' | |
- '.github/workflows/*client.yml' | |
env: | |
HUSKY: 0 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Disable prepare script (husky) | |
run: npm pkg delete scripts.prepare | |
- name: Install dependencies | |
run: npm ci --prefix=client --no-audit | |
- name: Check format | |
run: npm run format --prefix=client | |
- name: Lint | |
run: npm run lint --prefix=client | |
- name: Build | |
run: npm run build --prefix=client |