From: Daniel Lockyer Date: Fri, 8 Nov 2019 05:38:29 +0000 (+0700) Subject: Switched to gscan testing via GitHub Actions X-Git-Url: https://git.njae.me.uk/?p=editorial.git;a=commitdiff_plain;h=7314552e2a0046322445429ec07a315023e93555 Switched to gscan testing via GitHub Actions no issue --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..94db5cf --- /dev/null +++ b/.github/workflows/test.yml @@ -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 index d287a9b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -sudo: false -node_js: - - "8" diff --git a/package.json b/package.json index 3297058..4d82272 100644 --- a/package.json +++ b/package.json @@ -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" },