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 5de1469..0000000 --- a/.travis.yml +++ /dev/null @@ -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 - - diff --git a/package.json b/package.json index 24a0363..9e95721 100644 --- a/package.json +++ b/package.json @@ -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",