From feb1459944ad97acf26bf25fa14ab99e4d5973cc Mon Sep 17 00:00:00 2001 From: Evan Jacobs Date: Fri, 20 Nov 2020 13:28:39 -0500 Subject: [PATCH] switch to github actions --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 8 -------- 2 files changed, 26 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 00000000..67bc5fd0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: CI +on: push +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: ["10", "12", "14"] + steps: + - uses: actions/checkout@v2 + + - uses: actions/cache@v2 + with: + path: "**/node_modules" + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + + - name: Install modules + run: yarn + + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - name: Run tests + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 54ff6bcb..00000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -branches: - only: - - master -node_js: - - 10 - - 12 - - 14