Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use GitHub Actions #1385

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/css.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CSS Linting
on:
push:
paths:
- "package*.json"
- ".stylelint*"
- "**/*.css"
- ".github/workflows/css.yml"
- "!common/**"

pull_request:
paths:
- "package*.json"
- ".stylelint*"
- "**/*.css"
- ".github/workflows/css.yml"
- "!common/**"

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "12"

- name: Install npm dependencies
run: npm ci

- name: Stylelint
run: npm run lint:css
38 changes: 38 additions & 0 deletions .github/workflows/html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: HTML Linting
on:
push:
paths:
- "package*.json"
- ".vnurc"
- "*.html"
- "examples/**/*.html"
- ".github/workflows/html.yml"
- "!common/**"

pull_request:
paths:
- "package*.json"
- ".vnurc"
- "*.html"
- "examples/**/*.html"
- ".github/workflows/html.yml"
- "!common/**"

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "12"

- name: Install npm dependencies
run: npm ci

- name: HTML Validator
run: npm run lint:html
36 changes: 36 additions & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: JavaScript Linting
on:
push:
paths:
- "package*.json"
- ".eslint*"
- "**/*.js"
- ".github/workflows/js.yml"
- "!common/**"

pull_request:
paths:
- "package*.json"
- ".eslint*"
- "**/*.js"
- ".github/workflows/js.yml"
- "!common/**"

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "12"

- name: Install npm dependencies
run: npm ci

- name: ESLint
run: npm run lint:es
38 changes: 38 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Spellcheck
on:
push:
paths:
- "package*.json"
- "cspell.json"
- "aria-practices.html"
- "examples/**/*.html"
- ".github/workflows/spelling.yml"
- "!common/**"

pull_request:
paths:
- "package*.json"
- "cspell.json"
- "aria-practices.html"
- "examples/**/*.html"
- ".github/workflows/spelling.yml"
- "!common/**"

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "12"

- name: Install npm dependencies
run: npm ci

- name: cSpell
run: npm run lint:spelling
14 changes: 0 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ jobs:
- env: ALLOW_FAILURE=true

include:
- stage: Test
name: CSS Linting
script: npm run lint:css
- stage: Test
name: JS Linting
script: npm run lint:es
- stage: Test
name: HTML Linting
script: npm run vnu-jar
- stage: Test
name: Spellcheck
script: npm run lint:spelling
env: ALLOW_FAILURE=true

- stage: Test
name: AVA Regression Tests
addons:
Expand Down