From f09d3b6757f1f6dedbe7749f75098b822d4ef734 Mon Sep 17 00:00:00 2001 From: Keiko Oda Date: Tue, 28 Apr 2020 11:37:00 -0700 Subject: [PATCH 1/3] Migrate from travis to github action --- .github/workflows/test.yml | 49 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 32 ------------------------- 2 files changed, 49 insertions(+), 32 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..1569ce20 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,49 @@ +name: Test +on: + # Ensure GitHub actions are not run twice for same commits + push: + branches: [master] + tags: ['*'] + pull_request: + types: [opened, synchronize, reopened] + +jobs: + test-node: + name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + node_version: [12] + runs-on: ${{ matrix.os }} + steps: + - name: Install Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node_version }} + - name: Git checkout + uses: actions/checkout@v1 + - name: Install dependencies + run: npm install + - name: Tests + run: npm test + test-go: + name: Test on go ${{ matrix.go_version }} and ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + go_version: [1.13.x, 1.14.x] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go ${{ matrix.go }} + uses: actions/setup-go@v2-beta + with: + go-version: ${{ matrix.go_version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Install make + run: choco install make + if: ${{ matrix.os == 'windows-latest' }} + - name: Install dependencies + run: make deps + - name: Tests + run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6f02f72d..00000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -dist: bionic -jobs: - include: - - language: go - go: '1.13' - os: windows - install: - - choco install make - - make deps - script: make test - - language: go - go: '1.13' - os: osx - install: make deps - script: make test - - language: go - go: '1.13' - os: linux - install: make deps - script: make test - - language: node_js - node_js: '12' - os: windows - - language: node_js - node_js: '12' - os: osx - - language: node_js - node_js: '12' - os: linux -cache: npm -notifications: - email: false From 07b8d772e3eb8494d3992c9038d1f3b4fb6aad33 Mon Sep 17 00:00:00 2001 From: Keiko Oda Date: Tue, 28 Apr 2020 12:21:21 -0700 Subject: [PATCH 2/3] Update .github/workflows/test.yml Co-Authored-By: Marcus Weiner --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1569ce20..c0838387 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: jobs: test-node: - name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} + name: Node ${{ matrix.node_version }} on ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macOS-latest, windows-latest] From f2481fbba2459f96dd5565d63f252e8d68b9eea1 Mon Sep 17 00:00:00 2001 From: Keiko Oda Date: Tue, 28 Apr 2020 12:21:27 -0700 Subject: [PATCH 3/3] Update .github/workflows/test.yml Co-Authored-By: Marcus Weiner --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0838387..8f7eaf94 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: - name: Tests run: npm test test-go: - name: Test on go ${{ matrix.go_version }} and ${{ matrix.os }} + name: Go ${{ matrix.go_version }} on ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macOS-latest, windows-latest]