--- /dev/null
+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
"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"
},