From 4cca8eebafafcbe7d0eb43e8dc8e755f257cbf32 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sat, 24 Jun 2023 11:48:03 +0200 Subject: [PATCH] =?UTF-8?q?switch=20from=20Travis=20CI=20to=20GitHub=20Act?= =?UTF-8?q?ions=20=F0=9F=92=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 6 ------ 2 files changed, 28 insertions(+), 6 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..0840774 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: test + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['10', '12', '14', '16', '18', '20'] + + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup Node v${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm install + + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 35f9008..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -sudo: false -language: node_js -node_js: - - 'stable' - - '12' - - '10'