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