-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2492 from Leeaun1127/denniswong1225-patch-2
GH pages deployment #2128
- Loading branch information
Showing
2 changed files
with
77 additions
and
45 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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Build and Configure | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm ci | ||
- name: build | ||
run: npx webpack --mode=production | ||
env: | ||
PUBLIC_PATH: '/AncientBeast/' | ||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: deploy | ||
path: deploy | ||
|
||
codeanalysis: | ||
runs-on: ubuntu-22.04 | ||
needs: build | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: /home/runner/work/AncientBeast/AncientBeast | ||
|
||
- run: npm ci | ||
- name: Static Code Analysis (ESLint) | ||
run: npm run lint > eslint-report.log | ||
- name: Static Code Analysis (ESLint) | ||
run: cat eslint-report.log | ||
- name: Archive ESLint Report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: eslint-report | ||
path: eslint-report.log | ||
|
||
test: | ||
runs-on: ubuntu-22.04 | ||
needs: codeanalysis | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint code | ||
run: npm run lint | ||
|
||
- name: Build for testing | ||
run: npm run build:dev | ||
|
||
- name: Run tests | ||
run: npm test | ||
|
||
deploy: | ||
runs-on: ubuntu-22.04 | ||
needs: test | ||
steps: | ||
- name: Deploy completed | ||
run: echo "Deploy completed" |
This file was deleted.
Oops, something went wrong.
25a8b64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ancientbeast – ./
ancientbeast-freezingmoon.vercel.app
ancientbeast-git-master-freezingmoon.vercel.app
beta.ancientbeast.com
ancientbeast.vercel.app