Skip to content

Test1

Test1 #14

Workflow file for this run

name: 'Coverage Test'
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
# Required to checkout the code.
contents: read
# Required to put a comment into the pull-request.
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: "Install Node"
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: "Install Deps"
run: npm install
- name: "Test"
run: npx vitest --coverage
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > ./pr_number
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
name: test-results
path: |
test-results.json
coverage
pr_number