Skip to content

Commit

Permalink
ci(github): update
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Sep 28, 2024
1 parent 0c5b57a commit 9935250
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
on: ["push", "pull_request"]
on: ['push', 'pull_request']

name: Test Coveralls

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions/checkout@v1

- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x

- name: yarn install, yarn test:coverage
run: |
yarn install
echo repo_token: ${{ secrets.COVERALLS_REPO_TOKEN }} > .coveralls.yml
yarn test:coverage
- name: yarn install, yarn test:coverage
run: |
yarn install
echo repo_token: ${{ secrets.COVERALLS_REPO_TOKEN }} > .coveralls.yml
yarn test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
env:
NODE_COVERALLS_DEBUG: 1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls
uses: coverallsapp/github-action@master
if: ${{ secrets.GITHUB_TOKEN != '' && github.event_name != 'pull_request' }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9935250

Please sign in to comment.