From 20c4fd0a7c932533f4c10d0b3e5deee718030dfa Mon Sep 17 00:00:00 2001 From: Evyweb Date: Sun, 10 Nov 2024 17:56:55 +0100 Subject: [PATCH] chore: add codecov upload step --- .github/workflows/main.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b26e33e..c0688b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,19 @@ jobs: node-version: 20.x cache: "npm" - - run: npm ci - - run: npm run lint - - run: npm test - - run: npm run build + - name: Install dependencies + run: npm ci + + - name: Linting + run: npm run lint + + - name: Tests + run: npm test:coverage + + - name: Upload results to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + + - name: Build + run: npm run build