-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #401 from KaiVolland/updates
Updates packages and CI
- Loading branch information
Showing
8 changed files
with
3,013 additions
and
22,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Test Pull Request | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x, 16.x] | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache Node.js modules 💾 | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.OS }}-node- | ||
${{ runner.OS }}- | ||
- name: Install dependencies ⏬ | ||
run: npm install | ||
|
||
- name: Lint code 💄 | ||
run: npm run lint | ||
|
||
- name: Typecheck code 🤖 | ||
run: npm run typecheck | ||
|
||
- name: Test code ✅ | ||
run: npm run test | ||
|
||
- name: Build artifacts 🏗️ | ||
run: npm run build | ||
|
||
- name: Publish to coveralls ⭐ | ||
# coverage/lcov.info was generated in the previous npm run build step | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Test Push to Master | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x, 16.x] | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache Node.js modules 💾 | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.OS }}-node- | ||
${{ runner.OS }}- | ||
- name: Install dependencies ⏬ | ||
run: npm install | ||
|
||
- name: Lint code 💄 | ||
run: npm run lint | ||
|
||
- name: Typecheck code 🤖 | ||
run: npm run typecheck | ||
|
||
- name: Test code ✅ | ||
run: npm run test | ||
|
||
- name: Build artifacts 🏗️ | ||
run: npm run build | ||
|
||
- name: Publish to coveralls ⭐ | ||
# coverage/lcov.info was generated in the previous npm run build step | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
module.exports = { | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js" | ||
'testEnvironment': 'jsdom', | ||
'moduleFileExtensions': [ | ||
'ts', | ||
'js' | ||
], | ||
"setupFilesAfterEnv": [ | ||
"jest-canvas-mock" | ||
'setupFilesAfterEnv': [ | ||
'jest-canvas-mock' | ||
], | ||
"transform": { | ||
"^.+\\.(ts|js)$": "<rootDir>/node_modules/babel-jest" | ||
'transform': { | ||
'^.+\\.(ts|js)$': '<rootDir>/node_modules/babel-jest' | ||
}, | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!(ol|@terrestris/*)/)" | ||
'transformIgnorePatterns': [ | ||
'node_modules/(?!(ol|@terrestris/*)/)' | ||
], | ||
"testRegex": "/src/.*\\.spec.ts$", | ||
"collectCoverageFrom": [ | ||
"src/*.ts" | ||
'testRegex': '/src/.*\\.spec.ts$', | ||
'collectCoverageFrom': [ | ||
'src/*.ts' | ||
] | ||
}; |
Oops, something went wrong.