From 44dec32308ac9796e201916e5881a98d1c90cd9e Mon Sep 17 00:00:00 2001 From: Huy Pham <11185878+hdp617@users.noreply.github.com> Date: Fri, 31 Jul 2020 14:40:38 -0700 Subject: [PATCH 1/2] test: add github workflows --- .github/workflows/ci-workflow.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci-workflow.yml diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml new file mode 100644 index 00000000..414b1ead --- /dev/null +++ b/.github/workflows/ci-workflow.yml @@ -0,0 +1,24 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build --if-present + - run: npm test + env: + CI: true \ No newline at end of file From adb5aa13e85d91dca5ea7754eb8c062bfe3c60b8 Mon Sep 17 00:00:00 2001 From: Huy Pham <11185878+hdp617@users.noreply.github.com> Date: Fri, 31 Jul 2020 15:36:29 -0700 Subject: [PATCH 2/2] test: remove Travis config file --- .github/workflows/ci-workflow.yml | 7 ++++++- .travis.yml | 15 --------------- 2 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 414b1ead..fad8f16d 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -5,13 +5,17 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 strategy: matrix: node-version: [10.x, 12.x, 14.x] steps: + - uses: actions/setup-go@v2 + with: + go-version: '1.14' + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 @@ -20,5 +24,6 @@ jobs: - run: npm install - run: npm run build --if-present - run: npm test + - run: npm run test-conformance env: CI: true \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 636c4edf..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - "10" - - "node" -branches: - only: - - master -cache: - directories: - - node_modules/ -before_script: - - npm run compile -script: - - npm run test - - npm run check