From 27ceabb4be6c3d7851471651122256604d518349 Mon Sep 17 00:00:00 2001 From: Tema Smirnov Date: Sat, 5 Jun 2021 18:09:07 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Enable=20GitHub=20Actions=20as?= =?UTF-8?q?=20CI=20for=20tests=20&=20coverage=20reports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove Travis CI --- .github/workflows/ci.yml | 58 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 12 --------- README.md | 8 +++--- package.json | 3 +-- 4 files changed, 63 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1b4bdd2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,58 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + name: Node.js ${{ matrix.node-version }} + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Cache Node.js modules (pnpm) + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-modules + with: + path: ~/.pnpm-store + key: ${{ runner.OS }}-${{ env.cache-name }}-node-${{ matrix.node-version }}- + restore-keys: | + ${{ runner.OS }}-${{ env.cache-name }}-node-${{ matrix.node-version }}- + + # pnpm much faster and better than npm & yarn, check it out: https://pnpm.io/ + - uses: pnpm/action-setup@v2.0.1 + with: + version: 6.7.2 + + - name: Install dependencies + run: pnpm install + + # Here we will use pnpx to run executables, instead of running `npm run