Skip to content

Commit

Permalink
ci: Switch to new GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mvsde committed Sep 20, 2019
1 parent ccedca3 commit 83e4fd3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/main.workflow

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Lint and test
on: [push]

jobs:

lint:
name: Lint
runs-on: ubuntu-18.04
steps:
- name: Check out repository
uses: actions/checkout@v1
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Lint CSS
run: npm run lint:css
- name: Lint JavaScript
run: npm run lint:js

test:
name: Test (Node.js ${{ matrix.node }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [10, 12]
os: [ubuntu-18.04, macOS-10.14]
steps:
- name: Check out repository
uses: actions/checkout@v1
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:unit
- name: Run build test
run: npm run build:ui

0 comments on commit 83e4fd3

Please sign in to comment.