summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-11-05 02:17:31 +0900
committerGitHub <noreply@github.com>2020-11-05 02:17:31 +0900
commitdaff5066c6ef76c7c947821e2e20d5c37caa4a0f (patch)
tree62a8f85a8abfc4b0761d07657ca6558fa3f327ec
parent15e6273a123a09c9d101121d64e1acfb47e53c28 (diff)
parent6d522c5483c0cdea11c6008a4305eb10636c74dd (diff)
downloadsphinx-git-daff5066c6ef76c7c947821e2e20d5c37caa4a0f.tar.gz
Merge pull request #8371 from tk0miya/do_npm_test_on_gha
test: Do "npm test" on GitHub Actions
-rw-r--r--.github/workflows/nodejs.yml21
-rw-r--r--.travis.yml11
2 files changed, 21 insertions, 11 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
new file mode 100644
index 000000000..d7a7c95f1
--- /dev/null
+++ b/.github/workflows/nodejs.yml
@@ -0,0 +1,21 @@
+name: CI (node.js)
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ env:
+ node-version: 10.7
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js ${{ env.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ env.node-version }}
+ - run: npm install
+ - name: Run headless test
+ uses: GabrielBB/xvfb-action@v1
+ with:
+ run: npm test
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 4ce005276..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-os: linux
-dist: xenial
-language: node_js
-node_js: '10.7'
-services: xvfb
-
-install:
- - npm install
-
-script:
- - npm test