diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..59a9573 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,36 @@ +name: Check Changes + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 18.x, 19.x] + steps: + - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 + - name: Set up Node.js version ${{ matrix.node-version }} + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: ๐Ÿ“ฆ Install dependencies + run: npm ci + - name: ๐Ÿงช Run tests + run: npm run test -- --coverage + coveralls: + needs: test + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ“ˆ Report code coverage + uses: coverallsapp/github-action@67662d24394fd74bffcf7b462d1b432814159afd # v2.0.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 658faab..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -sudo: false -language: node_js -node_js: - - 19 - - 18 - - 16 - - 14 -after_script: 'cat ./coverage/lcov.info | coveralls' diff --git a/README.md b/README.md index 81c6d68..57ba693 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# generator-generator [![Build Status](https://secure.travis-ci.org/yeoman/generator-generator.svg?branch=master)](https://travis-ci.org/yeoman/generator-generator) [![Coverage Status](https://coveralls.io/repos/yeoman/generator-generator/badge.svg?branch=master&service=github)](https://coveralls.io/github/yeoman/generator-generator?branch=master) +# generator-generator [![Check Changes](https://github.com/yeoman/generator-generator/actions/workflows/check.yml/badge.svg)](https://github.com/yeoman/generator-generator/actions/workflows/check.yml) [![Coverage Status](https://coveralls.io/repos/yeoman/generator-generator/badge.svg?branch=master&service=github)](https://coveralls.io/github/yeoman/generator-generator?branch=master) > Yeoman generator generating a Yeoman generator