-
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.
rename to frontend and correct lint & test
- Loading branch information
Showing
103 changed files
with
418 additions
and
582 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
name: Deploy Angular App to GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main # Adjust this to your default branch | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 # Ensure this matches your project's Node.js version | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
working-directory: frontend/ | ||
|
||
- name: Build Angular App | ||
run: npm run build -- --output-path ../dist | ||
working-directory: frontend/ | ||
|
||
- name: Copy CNAME file | ||
run: | | ||
echo "www.drumbeatrepo.com" > dist/CNAME | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GHPAGES }} | ||
publish_dir: dist |
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 |
---|---|---|
|
@@ -18,6 +18,10 @@ on: | |
|
||
jobs: | ||
eslint: | ||
defaults: | ||
run: | ||
working-directory: ./frontend | ||
|
||
name: Run eslint scanning | ||
runs-on: ubuntu-latest | ||
permissions: | ||
|
@@ -32,17 +36,29 @@ jobs: | |
run: | | ||
npm install [email protected] | ||
npm install @microsoft/[email protected] | ||
npx eslint --version | ||
npm list @microsoft/eslint-formatter-sarif | ||
- name: Run ESLint | ||
run: npx eslint . | ||
--config .eslintrc.js | ||
--ext .ts | ||
--format @microsoft/eslint-formatter-sarif | ||
--output-file eslint-results.sarif | ||
--output-file eslint-results.sarif || exit 0 | ||
continue-on-error: true | ||
|
||
- name: Check ESLint Output | ||
run: | | ||
pwd | ||
ls -la | ||
- name: Verify ESLint output | ||
run: | | ||
ls -l eslint-results.sarif | ||
cat eslint-results.sarif | ||
- name: Upload analysis results to GitHub | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: eslint-results.sarif | ||
wait-for-processing: true | ||
sarif_file: frontend/eslint-results.sarif | ||
wait-for-processing: true |
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.
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.
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.
Oops, something went wrong.