diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..778e25f6 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,47 @@ +name: Node CI + +on: + pull_request: {} + push: + branches-ignore: + - trying.tmp + - staging.tmp + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 13.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm install + npm test + - name: sizereport + run: ./node_modules/.bin/sizereport --config + +# Could add this for canary versions +# publish-gpr: +# needs: build +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v1 +# - uses: actions/setup-node@v1 +# with: +# node-version: 12 +# registry-url: https://npm.pkg.github.com/ +# scope: '@preact' +# - run: | +# npm install +# npm config set registry https://npm.pkg.github.com/ +# npm publish +# env: +# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5b4fae9..00000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - 'node' - - 'lts/*' -branches: - except: - - trying.tmp - - staging.tmp -after_success: sizereport --config