diff --git a/.editorconfig b/.editorconfig index eae0ed5..56f62d0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,7 +8,7 @@ charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true -[*.{md,yml}] +[*.{md,yml,yaml}] indent_style = space [*.md] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfc88c5..6dbb668 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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