diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a7e3119 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: spec-generator tests + +on: [push, pull_request, workflow_dispatch] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install + - run: npx respec2html -e --timeout 30 --src "https://w3c.github.io/payment-request/" + - run: npx respec2html -e --timeout 30 --src "https://w3c.github.io/resource-hints/" + - run: npm test + + - name: Notify failure + uses: rectalogic/notify-irc@v1 + if: ${{ failure() }} + with: + server: "irc.w3.org" + port: 6679 + channel: "#pub" + nickname: gh-action-notifier + tls: true + message: | + ${{ github.actor }} pushed to ${{ github.repository }}. https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} FAILED with node ${{ matrix.node-version}} (PR: ${{ github.event.pull_request.html_url }}) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ff2560c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - lts/* -script: - - npx respec2html -e --timeout 30 --src "https://w3c.github.io/payment-request/" - - npx respec2html -e --timeout 30 --src "https://w3c.github.io/resource-hints/" - - npm test -notifications: - email: false - irc: - channels: - - "irc.w3.org#pub" - skip_join: true - template: - - "%{branch} by %{author} (%{build_url}): %{message}"