forked from uhawaii-system-its-ti-iam/uh-groupings
-
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.
Replace Jest with Vitest (uhawaii-system-its-ti-iam#118)
- Loading branch information
Showing
70 changed files
with
364 additions
and
383 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Generate badges | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
jobs: | ||
create-branch: | ||
|
@@ -29,7 +29,7 @@ jobs: | |
echo "Branch $branch_name already exists." | ||
fi | ||
generate-jest-badges: | ||
generate-badges: | ||
needs: create-branch | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -41,7 +41,7 @@ jobs: | |
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
node-version: 18.x | ||
|
||
- name: Installing dependencies | ||
run: | | ||
|
@@ -59,9 +59,9 @@ jobs: | |
git switch badges | ||
- name: Generating coverage badges | ||
uses: jpb06/jest-badges-action@latest | ||
uses: jpb06/coverage-badges-action@latest | ||
with: | ||
branches: '*' | ||
branches: "*" | ||
coverage-summary-path: ui/coverage/coverage-summary.json | ||
no-commit: true | ||
target-branch: badges | ||
|
@@ -73,61 +73,6 @@ jobs: | |
git config --global user.name 'Groupings Project' | ||
git config --global user.email '[email protected]' | ||
git add *.svg | ||
git commit -m "Autogenerated Jest badges" *.svg | ||
git commit -m "Autogenerated Vitest badges" *.svg | ||
git push origin badges -f | ||
fi | ||
# Re-enable once UH Groupings API is added to this repo | ||
# generate-jacoco-badges: | ||
# needs: create-branch | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
|
||
# - name: Set up JDK 17 | ||
# uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: 17 | ||
|
||
# - name: Build with Maven and Generate JaCoCo Report | ||
# run: | | ||
# mvn clean test jacoco:report -f api/pom.xml -D'logging.level.edu.hawaii.its.holiday=OFF' -D'logging.level.org.springframework=ERROR' -D'spring.main.banner-mode=off' | ||
# mv api/target/ target/ | ||
|
||
# - name: Switch to badges branch | ||
# run: | | ||
# git fetch | ||
# git switch badges | ||
|
||
# - name: Generate Jacoco Badge | ||
# id: jacoco | ||
# uses: cicirello/jacoco-badge-generator@v2 | ||
# with: | ||
# coverage-label: junit coverage | ||
# badges-directory: badges | ||
# generate-branches-badge: true | ||
|
||
# - name: Log coverage percentage | ||
# run: | | ||
# echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | ||
|
||
# - name: Commit and push | ||
# if: ${{ github.event_name != 'pull_request' }} | ||
# run: | | ||
# cd badges | ||
# if [[ `git status --porcelain *.svg` ]]; then | ||
# git config --global user.name 'Groupings Project' | ||
# git config --global user.email '[email protected]' | ||
# git add *.svg | ||
# git commit -m "Autogenerated JaCoCo coverage badge" *.svg | ||
# git push origin badges -f | ||
# fi | ||
|
||
# - name: Upload Jacoco coverage report | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: jacoco-report | ||
# path: target/site/jacoco/ |
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
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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ package-lock.json | |
|
||
# testing | ||
/coverage | ||
.swc | ||
|
||
# next.js | ||
/.next/ | ||
|
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
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
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
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
Oops, something went wrong.