-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
name: Test and Deploy | ||
on: | ||
push: | ||
branches: [main] | ||
branches: [main] | ||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
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: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Install Yarn | ||
run: corepack prepare [email protected] --activate | ||
- name: Install Yarn | ||
run: corepack prepare [email protected] --activate | ||
|
||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Run Lint | ||
run: yarn lint | ||
- name: Run Lint | ||
run: yarn lint | ||
|
||
- name: Check Format | ||
run: yarn pretty:check | ||
- 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: 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: Clean | ||
run: yarn clean:dist | ||
|
||
- name: Build | ||
run: yarn build:client | ||
- 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 | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: '${{ secrets.GITHUB_TOKEN }}' | ||
publish_dir: ./dist/client |