Skip to content

Commit

Permalink
Merge pull request #440 from w3c/github_action_test
Browse files Browse the repository at this point in the history
Migrate test to github actions
  • Loading branch information
deniak authored Jun 24, 2021
2 parents 2543395 + e082bc3 commit 197b4e6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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 }})
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 197b4e6

Please sign in to comment.