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

Reindent nodejs.yml #4541

Merged
merged 1 commit into from Jan 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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