diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7afcea9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Node.js CI +on: + push: + branches: master +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10, 12, 14, 16, 18, 20, 22] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Run tests + run: yarn test --ci --coverage + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e4b4490..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: - - 14 - - 12 - - 10 -script: - - jest --ci --coverage && codecov diff --git a/readme.md b/readme.md index 448e83e..821b95c 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,5 @@ # rollup-plugin-delete -[![Build Status](https://travis-ci.org/vladshcherbin/rollup-plugin-delete.svg?branch=master)](https://travis-ci.org/vladshcherbin/rollup-plugin-delete) [![Codecov](https://codecov.io/gh/vladshcherbin/rollup-plugin-delete/branch/master/graph/badge.svg)](https://codecov.io/gh/vladshcherbin/rollup-plugin-delete) Delete files and folders using Rollup.