-
Notifications
You must be signed in to change notification settings - Fork 1
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
7 changed files
with
287 additions
and
278 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
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
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 |
---|---|---|
|
@@ -22,18 +22,24 @@ jobs: | |
# Checkout code using bot account | ||
token: ${{ github.token }} | ||
|
||
- name: Install PNPM | ||
run: npm install -g pnpm | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: 'npm' | ||
cache: "pnpm" | ||
cache-dependency-path: ./pnpm-lock.yaml | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Execute unit tests | ||
run: | | ||
npm ci | ||
npm run build | ||
npm run fmt:check | ||
npm run test | ||
pnpm run build | ||
pnpm run fmt:check | ||
pnpm run test | ||
- name: allow access to coverage.sh | ||
run: chmod +x ./scripts/coverage.sh | ||
|
@@ -42,12 +48,12 @@ jobs: | |
- name: Extract coverage | ||
id: coverage | ||
run: | | ||
value=$(npm run test:cov | awk '/All files/ {print $10}' | tr -d '%') | ||
value=$(pnpm run test:cov | awk '/All files/ {print $10}' | tr -d '%') | ||
echo "coverage=$value" >> $GITHUB_OUTPUT | ||
- name: Add test coverage to README | ||
run: ./scripts/coverage.sh | ||
shell: bash | ||
run: ./scripts/coverage.sh | ||
shell: bash | ||
env: | ||
COVERAGE: ${{ steps.coverage.outputs.coverage }} | ||
|
||
|
@@ -62,4 +68,4 @@ jobs: | |
with: | ||
commit_message: "Generate coverage badge" | ||
file_pattern: "README.md" | ||
commit_author: Aaave <[email protected]> | ||
commit_author: Aave <[email protected]> |
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.