Browse Source

Switched to gscan testing via GitHub Actions

no issue
master
Daniel Lockyer 8 months ago
parent
commit
88e3db9d3b
3 changed files with 34 additions and 12 deletions
  1. +32
    -0
      .github/workflows/test.yml
  2. +0
    -11
      .travis.yml
  3. +2
    -1
      package.json

+ 32
- 0
.github/workflows/test.yml View File

@@ -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

+ 0
- 11
.travis.yml View File

@@ -1,11 +0,0 @@
dist: xenial
language: node_js
node_js:
- 10
cache: yarn

# Don't run builds for renovate PRs
if: NOT head_branch =~ ^renovate



+ 2
- 1
package.json View File

@@ -15,7 +15,8 @@
"scripts": {
"dev": "gulp",
"zip": "gulp zip",
"test": "gscan --v3 .",
"test": "gscan .",
"test:ci": "gscan --fatal --verbose .",
"pretest": "gulp build",
"preship": "yarn test",
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version && git push --follow-tags; else echo \"Uncomitted changes found.\" && exit 1; fi",


Loading…
Cancel
Save