Readymade 3.1.0 #238
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: Test and Deploy | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install Yarn | |
run: corepack prepare [email protected] --activate | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Run Lint | |
run: yarn lint | |
- name: Check Format | |
run: yarn pretty:check | |
- name: Cypress | |
uses: cypress-io/[email protected] | |
with: | |
build: yarn build | |
start: yarn serve | |
wait-on: http://localhost:4444 | |
- name: Clean | |
run: yarn clean:dist | |
- name: Build | |
run: yarn build:client | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: '${{ secrets.GITHUB_TOKEN }}' | |
publish_dir: ./dist/client |