From ae36981ef2f4b46930741223525743f90545c4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Thu, 30 Dec 2021 23:59:38 +0100 Subject: [PATCH] Build: Switch to GitHub Actions --- .github/workflows/node.js.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 3 --- 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/node.js.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..fe06fad --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,35 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + NODE_VERSION: [16.x] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Cache + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock- + + - name: Use Node.js ${{ matrix.NODE_VERSION }} + uses: actions/setup-node@v2.1.2 + with: + node-version: ${{ matrix.NODE_VERSION }} + + - name: Install dependencies + run: | + npm install + + - name: Run tests + run: | + npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cdcdfc9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "12"