diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index 1a31d2b5..f4118031 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -3,6 +3,8 @@ name: CI Build on: pull_request: branches: [ master ] + push: + branches: [ master ] jobs: build: @@ -10,17 +12,28 @@ jobs: # We specify the Node.js version manually below, and use versioned Chrome from Puppeteer. runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@master + - name: Use Node.js 20 uses: actions/setup-node@v1 with: node-version: 20 + - name: Install dependencies run: npm ci + - name: Build run: npm run build-lib + - name: Test run: npm run test-lib-headless + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: MurhafSousli/ngx-scrollbar + - name: Code Coverage Report uses: irongut/CodeCoverageSummary@v1.3.0 with: @@ -33,17 +46,13 @@ jobs: indicators: true output: both thresholds: '60 80' + - name: Add Coverage PR Comment uses: marocchino/sticky-pull-request-comment@v2 if: github.event_name == 'pull_request' with: recreate: true path: code-coverage-results.md - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: MurhafSousli/ngx-scrollbar -# - name: Build demo (ssr) -# run: npm run build + - name: Build demo (ssr) + run: npm run build diff --git a/README.md b/README.md index 01264711..fc63aad2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Stackblitz](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-scrollbar) [![Backers on Open Collective](https://opencollective.com/ngx-scrollbar/tiers/backers/badge.svg?label=Backers&color=brightgreen)](#sponsoring-ngx-scrollbar) [![npm](https://img.shields.io/npm/v/ngx-scrollbar.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ngx-scrollbar) -[![CI Build](https://github.com/MurhafSousli/ngx-scrollbar/workflows/tests/badge.svg)](https://github.com/MurhafSousli/ngx-scrollbar/actions?query=workflow%3Atests) +[![CI Build](https://github.com/MurhafSousli/ngx-scrollbar/workflows/tests/badge.svg)](https://github.com/MurhafSousli/ngx-scrollbar/actions?query=workflow%3Aci-build) [![codecov](https://codecov.io/gh/MurhafSousli/ngx-scrollbar/graph/badge.svg?token=TO2idZEE1i)](https://codecov.io/gh/MurhafSousli/ngx-scrollbar) [![Downloads](https://img.shields.io/npm/dt/ngx-scrollbar.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ngx-scrollbar) [![NPM Downloads](https://img.shields.io/npm/dm/ngx-scrollbar.svg)](https://www.npmjs.com/package/ngx-scrollbar)