From 901b2cbeeb1c4bccb30c919a77f7df5edb68325a Mon Sep 17 00:00:00 2001 From: dcode Date: Mon, 3 Feb 2020 20:53:13 +0100 Subject: [PATCH 1/3] Move CI to GitHub Actions --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 15 --------------- 2 files changed, 35 insertions(+), 15 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 000000000..ca828e9d5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: "Test" +on: + push: + branches: + - master + pull_request: +jobs: + test: + name: "Test" + runs-on: ubuntu-latest + strategy: + matrix: + node_version: ["4", "4.3.2", "6", "8", "10", "lts/*", "node"] + steps: + - uses: actions/checkout@v1.0.0 + - uses: dcodeIO/setup-node-nvm@v1.0.0 + with: + node-version: ${{ matrix.node_version }} + - name: "Install dependencies" + run: npm ci --no-audit + - name: "Run tests" + run: npm test + bench: + name: "Bench" + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v1.0.0 + - uses: dcodeIO/setup-node-nvm@v1.0.0 + with: + node-version: "lts/*" + - name: "Install dependencies" + run: npm ci --no-audit + - name: "Run benchmark" + run: npm run bench diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a7e62a242..000000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -dist: trusty -language: node_js -node_js: - - node - - lts/* - - 12 - - 11 - - 10 - - 8 - - 6 - - 4.3.2 - - 4 -branches: - only: master -script: npm test && npm run bench From 86b2e749afa2023c7382b5937eaf05a4f7d2ec45 Mon Sep 17 00:00:00 2001 From: dcode Date: Mon, 3 Feb 2020 22:15:32 +0100 Subject: [PATCH 2/3] try actions/setup-node --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca828e9d5..e703186f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node_version: ["4", "4.3.2", "6", "8", "10", "lts/*", "node"] + node_version: ["4", "4.3.2", "6", "8", "10", "12"] steps: - - uses: actions/checkout@v1.0.0 - - uses: dcodeIO/setup-node-nvm@v1.0.0 + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node_version }} - name: "Install dependencies" @@ -25,10 +25,10 @@ jobs: runs-on: ubuntu-latest needs: test steps: - - uses: actions/checkout@v1.0.0 - - uses: dcodeIO/setup-node-nvm@v1.0.0 + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 with: - node-version: "lts/*" + node-version: "12" - name: "Install dependencies" run: npm ci --no-audit - name: "Run benchmark" From 14b22e6baf6646047610398721d621d27c46b428 Mon Sep 17 00:00:00 2001 From: dcode Date: Mon, 3 Feb 2020 22:17:56 +0100 Subject: [PATCH 3/3] can't use npm ci --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e703186f3..793a9729c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: with: node-version: ${{ matrix.node_version }} - name: "Install dependencies" - run: npm ci --no-audit + run: npm install - name: "Run tests" run: npm test bench: @@ -30,6 +30,6 @@ jobs: with: node-version: "12" - name: "Install dependencies" - run: npm ci --no-audit + run: npm install - name: "Run benchmark" run: npm run bench