diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..023a055 --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,22 @@ +name: "Develop Build" +run-name: develop-build-${{ github.run_number }}-${{ github.run_id }} +on: + push: + branches: + - develop +jobs: + develop-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.10.0' + - name: Install npm packages + run: npm ci + - name: Test + run: npm test + - name: Lint + run: npm run lint + - name: Build + run: npm run build diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6ed067c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: "Main Build" +run-name: main-build-${{ github.run_number }}-${{ github.run_id }} +on: + push: + branches: + - master + - main +jobs: + develop-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.10.0' + - name: Install npm packages + run: npm ci + - name: Test + run: npm test + - name: Lint + run: npm run lint + - name: Build + run: npm run build + - name: Release + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release + - name: Add code coverage + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: npm run coveralls diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 76b2ee8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: node_js -node_js: - - 16 - - 17 - - 18 - - 19 - - 20 -after_success: npm run coveralls -jobs: - include: - # Define the release stage that runs semantic-release - - stage: release - node_js: 20 - script: skip - deploy: - provider: script - skip_cleanup: true - script: - - npx semantic-release diff --git a/README.md b/README.md index 8185172..ca9c5da 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![npm module](https://badge.fury.io/js/reduxsauce.svg)](https://www.npmjs.org/package/reduxsauce) -[![Build Status](https://travis-ci.com/jkeam/reduxsauce.svg?branch=master)](https://travis-ci.com/jkeam/reduxsauce) +![Build Status](https://github.com/jkeam/reduxsauce/actions/workflows/main.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/jkeam/reduxsauce/badge.svg?branch=master)](https://coveralls.io/github/jkeam/reduxsauce?branch=master) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)