From 122787907c9667d71ed5da1de5be68e8dd8de656 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 28 Aug 2024 22:57:55 +0100 Subject: [PATCH] build: setup GitHub CI --- .github/workflows/CI.yaml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 5 ----- readme.md | 2 +- 3 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/CI.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..ce88167 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,31 @@ +name: CI +on: + - push + - pull_request + +jobs: + + test: + strategy: + matrix: + include: + - node: 10.x + - node: 12.x + - node: 14.x + - node: 16.x + - node: 18.x + - node: 20.x + + name: Node ${{ matrix.node }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout + + - name: Install Node.js + uses: actions/setup-node + with: + node-version: ${{ matrix.node }} + + - run: npm install + + - run: npm test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 41ef5c0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - 14 - - 12 - - 10 diff --git a/readme.md b/readme.md index 3b7630e..6c13b33 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.com/qunitjs/node-qunit.svg?branch=master)](https://travis-ci.com/qunitjs/node-qunit) [![npm](https://img.shields.io/npm/v/node-qunit.svg?style=flat)](https://www.npmjs.com/package/node-qunit) +[![npm](https://img.shields.io/npm/v/node-qunit.svg?style=flat)](https://www.npmjs.com/package/node-qunit) ## QUnit testing framework for Node.js