-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put the ReactJS project within the frontend directory
- Loading branch information
Showing
152 changed files
with
2,083 additions
and
5,023 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,48 +1,51 @@ | ||
name: Deploy React App | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev # Adjust this to your main branch | ||
push: | ||
branches: | ||
- dev # Adjust this to your main branch | ||
|
||
jobs: | ||
deploy: | ||
runs-on: dev | ||
deploy: | ||
runs-on: dev | ||
defaults: | ||
run: | ||
working-directory: ./frontend | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.17.1' # Adjust this to your required Node version | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18.17.1" # Adjust this to your required Node version | ||
|
||
- name: Install Pnpm | ||
run: npm install -g pnpm | ||
- name: Install Pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Format code | ||
run: pnpm format | ||
- name: Format code | ||
run: pnpm format | ||
|
||
- name: Lint code | ||
run: pnpm oxlint | ||
- name: Lint code | ||
run: pnpm oxlint | ||
|
||
- name: Run tests | ||
run: pnpm run test | ||
- name: Run tests | ||
run: pnpm run test | ||
|
||
- name: Build project | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
run: NODE_OPTIONS="--max-old-space-size=4096" pnpm run build | ||
- name: Build project | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
run: NODE_OPTIONS="--max-old-space-size=4096" pnpm run build | ||
|
||
- name: Postbuild project | ||
run: pnpm run postbuild | ||
- name: Postbuild project | ||
run: pnpm run postbuild | ||
|
||
- name: Deploy to server | ||
run: | | ||
rm -rf /var/www/INSIGHTS/dist/* | ||
cp -r ./dist/* /var/www/INSIGHTS/dist | ||
sudo systemctl restart nginx | ||
- name: Deploy to server | ||
run: | | ||
rm -rf /var/www/INSIGHTS/frontend/dist/* | ||
cp -r ./frontend/dist/* /var/www/INSIGHTS/frontend/dist | ||
sudo systemctl restart nginx |
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 |
---|---|---|
|
@@ -61,3 +61,6 @@ backup* | |
|
||
# Coverage files | ||
.coverage | ||
|
||
stats.html | ||
start.sh |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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,2 @@ | ||
dist/ | ||
node_modules/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.