Skip to content

Commit

Permalink
chore: fix the main github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhaenisch committed Aug 23, 2019
1 parent 059b290 commit 95acf1a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.{md,yml}]
[*.{md,yml,yaml}]
indent_style = space

[*.md]
Expand Down
53 changes: 29 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,35 @@ jobs:
build:
strategy:
matrix:
node: [ '8', '10' ]
os: ['ubuntu-latest', 'windows-latest', 'macOS-latest']
node:
- '8'
- '10'
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macOS-latest'

name: Node.js v{{ matrix.node }}.x on {{ matrix.os }}
runs-on: {{ matrix.os }}
name: Node.js v${{ matrix.node }}.x on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@master

- name: Use Node.js {{ matrix.os }}.x
uses: actions/setup-node@v1
with:
version: {{ matrix.node }}.x

- name: install and lint
run: |
npm install
npx xo
- name: test lib
run: npx nyc --reporter=lcov ava test/lib.spec.js

- name: test api
run: npx ava test/api.spec.js
- name: test cli
run: npx ava test/cli.spec.js
- uses: actions/checkout@master

- name: Use Node.js ${{ matrix.os }}.x
uses: actions/setup-node@v1
with:
version: ${{ matrix.node }}.x

- name: install and lint
run: |
npm install
npx xo
- name: test lib
run: npx nyc --reporter=lcov ava test/lib.spec.js

- name: test api
run: npx ava test/api.spec.js

- name: test cli
run: npx ava test/cli.spec.js

0 comments on commit 95acf1a

Please sign in to comment.