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

ci: Update packages and separate testing matrix #81

Merged
merged 2 commits into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.CRLF.txt]
end_of_line = crlf

[*.noEOL.txt]
insert_final_newline = false

[*.{yaml,yml}]
indent_size = 2

[{package*.json,lerna.json}]
indent_size = 2

[*.md]
indent_size = 2
trim_trailing_whitespace = false
22 changes: 11 additions & 11 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- run: npm install
- run: npm run coverage
- name: Publish Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
- name: Publish Codecov
uses: codecov/codecov-action@v1.5.0
with:
file: ./coverage/lcov.info
- uses: actions/checkout@v2.3.4
- run: npm install
- run: npm run coverage
- name: Publish Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
- name: Publish Codecov
uses: codecov/codecov-action@v1.5.0
with:
file: ./coverage/lcov.info
12 changes: 7 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ name: lint
on: # rebuild any PRs and main branch changes
pull_request:
push:
branch:
- master

jobs:
cspell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- run: npx cspell "**/{*.ts,*.md}"
- uses: actions/checkout@v2.3.4
- run: npx cspell "**/{*.ts,*.md}"

eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- run: npm i
- run: npm run lint
- uses: actions/checkout@v2.3.4
- run: npm i
- run: npm run lint
36 changes: 27 additions & 9 deletions .github/workflows/test-terminate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,38 @@ name: "test-terminate"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branch:
- master

jobs:
test: # make sure build/ci work properly
test-os: # make sure build/ci work properly
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [15.x]
steps:
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: node -v
- run: node workerTerminate.js

test-node-older: # make sure build/ci work properly
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 12.x]
steps:
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: node -v
- run: node workerTerminate.js
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: node -v
- run: node workerTerminate.js
44 changes: 32 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,43 @@ name: "build-test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branch:
- master

jobs:
test: # make sure build/ci work properly
test-os: # make sure build/ci work properly
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [15.x]
steps:
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: node -v
- run: npm install
- run: npm run test-js
- run: npm run test-ts
- run: npm run coverage

test-os: # make sure build/ci work properly
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 12.x]
steps:
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: node -v
- run: npm install
- run: npm run test-js
- run: npm run test-ts
- run: npm run coverage
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node-version }}
- run: node -v
- run: npm install
- run: npm run test-js
- run: npm run test-ts
14 changes: 11 additions & 3 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@
"path": "./cspell-words.txt"
}
],
"dictionaries": ["cspell-words"],
"dictionaries": [
"cspell-words"
],
"overrides": [
{
"filename": "**/lorem*.*",
"enabled": false
}
],
"customWorkspaceDictionaries": ["cspell-words"]
}
"customWorkspaceDictionaries": [
"cspell-words"
],
"words": [
"coverallsapp",
"Dependabot"
]
}
Loading