From 5e2fd018bb214fb18941d26817b0964c9ef58409 Mon Sep 17 00:00:00 2001 From: Aleksandr Dukhovnyy Date: Sun, 29 Oct 2023 15:13:55 +0200 Subject: [PATCH] Create codecov.yml --- .github/workflows/codecov.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..64ce03c --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,33 @@ +name: Codecov + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 18 + + - name: Install dependencies + run: npm install + + - name: Run tests and generate coverage report + run: npm run test -- --coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }}