From 91af28c1e42e76a68248f4c44651d4b1615a1664 Mon Sep 17 00:00:00 2001 From: Nick K Date: Wed, 14 Feb 2024 22:12:59 +0300 Subject: [PATCH] Add codecov token to ci config and code style fixes for workflows --- .github/workflows/ci.yml | 10 ++++++---- .github/workflows/eslint.yml | 6 +++--- .github/workflows/typescript.yml | 6 +++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c60082..4a37223 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index e6e83de..2e5f7aa 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -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 diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index 518c1dd..65bcdf4 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -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