Skip to content

Use v4 for checkout and v2 for coveralls #1963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
on:
workflow_call:
inputs:
branch:
required: false
type: string

jobs:
test:
Expand All @@ -14,9 +10,7 @@ jobs:
node: [12.x, 14.x, 16.x, 18.x]
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
ref: ${{ inputs.branch || github.event.pull_request.head.ref || github.ref_name }}
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
Expand All @@ -35,7 +29,7 @@ jobs:
- run: npm run test:cov || npm run test:cov || npm run test:cov
- name: Coveralls
if: matrix.node == '18.x'
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{matrix.node}}
Expand All @@ -53,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
Loading