From 20b960a234c569ee6443e3392227c27976370082 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Tue, 18 Jul 2023 20:44:13 -0700 Subject: [PATCH] Switch from Travis to GitHub actions for CI (#208) --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 12 ------------ README.md | 2 +- 3 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c8fe5e6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test + +on: + push: + branches: + - develop + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node_version: [10, 12, 14, 16, 18] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node_version }} + + - run: npm ci + + - run: npm run build + - run: npm run test + + - if: matrix.node_version == 18 + uses: codecov/codecov-action@v3 + with: + directory: ./coverage diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f323ae5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js -arch: - - amd64 - - ppc64le -node_js: - - "10" - - "12" -script: - - npm run build - - npm run test -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index e0d8494..97d3ef9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Financial Contributors on Open Collective](https://opencollective.com/webpack-merge/all/badge.svg?label=financial+contributors)](https://opencollective.com/webpack-merge) [![build status](https://secure.travis-ci.org/survivejs/webpack-merge.svg)](http://travis-ci.org/survivejs/webpack-merge) [![codecov](https://codecov.io/gh/survivejs/webpack-merge/branch/master/graph/badge.svg)](https://codecov.io/gh/survivejs/webpack-merge) +[![Financial Contributors on Open Collective](https://opencollective.com/webpack-merge/all/badge.svg?label=financial+contributors)](https://opencollective.com/webpack-merge) [![Test](https://github.com/survivejs/webpack-merge/actions/workflows/test.yml/badge.svg?branch=develop&event=push)](https://github.com/survivejs/webpack-merge/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/survivejs/webpack-merge/branch/master/graph/badge.svg)](https://codecov.io/gh/survivejs/webpack-merge) # webpack-merge - Merge designed for Webpack