-
Notifications
You must be signed in to change notification settings - Fork 0
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 #16 from skedify/release/next
release/next
- Loading branch information
Showing
53 changed files
with
29,717 additions
and
11,993 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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
{ | ||
"sourceRoot": "src", | ||
"sourceType": "module", | ||
"filenameRelative": "index.js", | ||
"sourceMaps": "inline", | ||
"plugins": [ | ||
"syntax-trailing-function-commas", | ||
"transform-object-rest-spread" | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": [ | ||
"transform-es2015-modules-commonjs" | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
build: | ||
name: Create and verify a new build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install deps and build (with cache) | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Test | ||
run: npm test -- --ci --coverage --maxWorkers=2 | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: artifact-${{ github.run_id }} | ||
path: dist | ||
|
||
- name: Drop development dependencies | ||
run: npm prune --production | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: node-modules-${{ github.run_id }} | ||
path: node_modules | ||
test: | ||
name: Test functionality on Node ${{ matrix.node }} | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: ['9', '10', '12', '14', '16'] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node ${{ matrix.node }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact-${{ github.run_id }} | ||
path: dist | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: node-modules-${{ github.run_id }} | ||
path: node_modules | ||
|
||
- name: Run client tests | ||
run: npm run test:client | ||
|
||
|
||
publish: | ||
name: Publish extra information about the build | ||
needs: test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install deps and build (with cache) | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Publish Semantic Release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
id: semantic | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
Oops, something went wrong.