Skip to content

Commit

Permalink
Reindent nodejs.yml (#4541)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and hudochenkov committed Jan 12, 2020
1 parent a24e44a commit 062d298
Showing 1 changed file with 58 additions and 58 deletions.
116 changes: 58 additions & 58 deletions .github/workflows/nodejs.yml
Expand Up @@ -24,21 +24,21 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

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

- name: Install latest npm
run: npm install --global npm@latest
- name: Install latest npm
run: npm install --global npm@latest

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run pretest
- name: Lint
run: npm run pretest

test:
name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
Expand All @@ -54,30 +54,30 @@ jobs:
node-version: 12

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

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

- name: Install latest npm
run: npm install --global npm@latest
- name: Install latest npm
run: npm install --global npm@latest

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

# Workaround until https://github.com/stylelint/stylelint/issues/4337 is fixed
- name: Test (Windows)
if: matrix.os == 'windows-latest'
run: |
cd ..
cd D:\a\stylelint\stylelint
npm run jest
# Workaround until https://github.com/stylelint/stylelint/issues/4337 is fixed
- name: Test (Windows)
if: matrix.os == 'windows-latest'
run: |
cd ..
cd D:\a\stylelint\stylelint
npm run jest
- name: Test (Unix)
if: matrix.os != 'windows-latest'
run: npm run jest
- name: Test (Unix)
if: matrix.os != 'windows-latest'
run: npm run jest

coverage:
name: Coverage on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
Expand All @@ -90,31 +90,31 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

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

- name: Install latest npm
run: npm install --global npm@latest

- name: Install dependencies
run: npm ci

- name: Test with coverage
run: npm run jest -- --coverage

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel: true
path-to-lcov: ./.coverage/lcov.info

- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
- uses: actions/checkout@v2

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

- name: Install latest npm
run: npm install --global npm@latest

- name: Install dependencies
run: npm ci

- name: Test with coverage
run: npm run jest -- --coverage

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel: true
path-to-lcov: ./.coverage/lcov.info

- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

0 comments on commit 062d298

Please sign in to comment.