Skip to content

Commit

Permalink
Add codecov token to ci config and code style fixes for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Feb 14, 2024
1 parent 8f11767 commit 91af28c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: ${{matrix.node}}

- name: Setup pnpm
id: pnpm-install
Expand All @@ -50,10 +50,10 @@ jobs:
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{steps.pnpm-cache.outputs.STORE_PATH}}
key: ${{runner.os}}-pnpm-store-${{hashFiles('**/pnpm-lock.yaml')}}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{runner.os}}-pnpm-store-
- name: Install dependencies
run: pnpm i --frozen-lockfile
Expand All @@ -63,6 +63,8 @@ jobs:
- name: Upload codecov report
uses: codecov/codecov-action@v3
if: matrix.node == '20.x' && matrix.os == 'ubuntu-latest'
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
with:
file: ./coverage/coverage-final.json
flags: unittests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{steps.pnpm-cache.outputs.STORE_PATH}}
key: ${{runner.os}}-pnpm-store-${{hashFiles('**/pnpm-lock.yaml')}}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{runner.os}}-pnpm-store-
- name: Install dependencies
run: pnpm i --frozen-lockfile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{steps.pnpm-cache.outputs.STORE_PATH}}
key: ${{runner.os}}-pnpm-store-${{hashFiles('**/pnpm-lock.yaml')}}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{runner.os}}-pnpm-store-
- name: Install dependencies
run: pnpm i --frozen-lockfile
Expand Down

0 comments on commit 91af28c

Please sign in to comment.