From 888bbb09c00da0b3edd3df9466bb74ca311ba59e Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Sun, 1 Nov 2020 23:11:27 +0200 Subject: [PATCH 1/2] Use Github Action instead of Travis CI --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ .travis.yml | 8 -------- 2 files changed, 33 insertions(+), 8 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..5a8758d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Testing CI + +on: pull_request + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node: + - 4 + - 6 + - 8 + os: + - ubuntu-latest + - windows-latest + - macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm ci + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ac2e9ee..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js - -node_js: "10" -matrix: - include: - - node_js: "4" - - node_js: "6" - - node_js: "8" From 1c72f1bf4e69b38967db35ad980b9ba193431d61 Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Sun, 1 Nov 2020 23:12:08 +0200 Subject: [PATCH 2/2] Add node.js 10, 12 and 14 in CI matrix --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a8758d..00506a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,9 @@ jobs: - 4 - 6 - 8 + - 10 + - 12 + - 14 os: - ubuntu-latest - windows-latest