Skip to content

Commit

Permalink
fix: use implicit GITHUB_TOKEN on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nebolsin committed Sep 25, 2023
1 parent fd4bd28 commit f410789
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coveralls-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Wait on tests (PR)
uses: lewagon/[email protected]
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,25 @@ on: [ push, pull_request ]
jobs:
test-linux:
uses: ./.github/workflows/test.yml
secrets:
token: ${{ secrets.COVERALLS_REPO_TOKEN }}

test-macos:
uses: ./.github/workflows/test.yml
with:
os: macos
secrets:
token: ${{ secrets.COVERALLS_REPO_TOKEN }}

test-windows:
uses: ./.github/workflows/test.yml
with:
os: windows
secrets:
token: ${{ secrets.COVERALLS_REPO_TOKEN }}

coveralls:
runs-on: ubuntu-latest
if: ${{ always() }}
needs: [test-linux, test-macos, test-windows]
env:
COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
steps:
- uses: coverallsapp/github-action@v2
with:
carryforward: "linux-1,linux-2,macos-2,macos-2,windows-1,windows-1"
carryforward: "all"
parallel-finished: true
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ on:
type: boolean
default: true
description: |
Whether to store the coverage data as an artifact.
secrets:
token:
required: true
Whether to store the coverage data as an artifact.
env:
COVERALLS_SERVICE_NUMBER: ${{ inputs.build_id }}
COVERALLS_REPO_TOKEN: ${{ secrets.token }}

jobs:
test:
Expand All @@ -42,7 +38,7 @@ jobs:
build_id: ${{ inputs.build_id }}
result: ${{ steps.coveralls.outputs.coveralls-api-result}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
Expand Down

0 comments on commit f410789

Please sign in to comment.