From 77461fd1ccb131e74c39046d460c0bd4108fe8c5 Mon Sep 17 00:00:00 2001 From: Olavio Date: Fri, 1 Mar 2024 12:39:48 -0300 Subject: [PATCH] chore: update workflow --- .github/workflows/test.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6237c6c..fba5151 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,25 +1,27 @@ name: Test Coveralls -on: ["push", "pull_request"] +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: build: name: Build runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 18.x uses: actions/setup-node@v3 with: node-version: 18.x - - - name: Install dependencies - run: npm ci - - - name: Run coverage - run: npm run test:cov - + - run: npm ci + - run: npm run build --if-present + - run: npm run test:cov + - name: Coveralls uses: coverallsapp/github-action@v2.2.3 \ No newline at end of file