Switched to gscan testing via GitHub Actions
authorDaniel Lockyer <hi@daniellockyer.com>
Fri, 8 Nov 2019 05:38:29 +0000 (12:38 +0700)
committerDaniel Lockyer <hi@daniellockyer.com>
Fri, 8 Nov 2019 09:08:00 +0000 (16:08 +0700)
no issue

.github/workflows/test.yml [new file with mode: 0644]
.travis.yml [deleted file]
package.json

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644 (file)
index 0000000..94db5cf
--- /dev/null
@@ -0,0 +1,32 @@
+name: Test
+on:
+  pull_request:
+  push:
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ubuntu-18.04
+    strategy:
+      matrix:
+        node: [ '10' ]
+    name: Node ${{ matrix.node }}
+    steps:
+      - uses: actions/checkout@v1
+      - name: Cache node modules
+        uses: actions/cache@v1
+        with:
+          path: node_modules
+          key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
+          restore-keys: |
+            ${{ runner.OS }}-build-${{ env.cache-name }}-
+            ${{ runner.OS }}-build-
+            ${{ runner.OS }}-
+      - name: Setup node
+        uses: actions/setup-node@v1
+        with:
+          node-version: ${{ matrix.node }}
+      - run: npm install yarn
+      - run: yarn install
+      - run: yarn test:ci
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index d287a9b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-sudo: false
-node_js:
-  - "8"
index 32970585ab16d3411188448d5abbb6d30b342a92..4d822728422917cfe0490453be46f2b5baaee85e 100644 (file)
@@ -16,6 +16,7 @@
         "zip": "gulp zip",
         "pretest": "gulp build",
         "test": "gscan .",
+        "test:ci": "gscan --fatal --verbose .",
         "preship": "yarn test",
         "ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version && git push --follow-tags; fi"
     },