-
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.
- Loading branch information
Showing
60 changed files
with
19,646 additions
and
10,583 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Docs | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
checks: | ||
if: github.event_name != 'push' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node 14.x 🔧 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
|
||
- name: Install deps and build (with cache) 📦 | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Build Project 🚧 | ||
run: | | ||
yarn build | ||
- name: Install deps and build (with cache) 📦 | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
working-directory: website | ||
|
||
- name: Test Build 🚧 | ||
run: | | ||
pushd website | ||
yarn build | ||
popd | ||
gh-release: | ||
if: github.event_name != 'pull_request' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node 14.x 🔧 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
|
||
- name: Setup SSH Keys 🔑 | ||
uses: webfactory/ssh-agent@v0.5.0 | ||
with: | ||
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} | ||
|
||
- name: Install deps and build (with cache) 📦 | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Build Project 🚧 | ||
run: | | ||
yarn build | ||
- name: Install deps and build (with cache) 📦 | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
working-directory: website | ||
|
||
- name: Release to GitHub Pages 🚀 | ||
env: | ||
USE_SSH: true | ||
GIT_USER: git | ||
DEPLOYMENT_BRANCH: gh-pages | ||
|
||
run: | | ||
git config --global user.email "actions@github.com" | ||
git config --global user.name "gh-actions" | ||
pushd website | ||
yarn deploy | ||
popd |
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,43 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
build: | ||
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node: [12, 14, 16] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
env: | ||
OS: ${{ matrix.os }} | ||
NODE_VERSION: ${{ matrix.node }} | ||
|
||
steps: | ||
- name: Checkout repo 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node ${{ matrix.node }} 🔧 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install deps and build (with cache) 📦 | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Lint 🔍 | ||
run: yarn lint | ||
|
||
- name: Test ✅ | ||
run: yarn test:coverage --ci | ||
|
||
- name: Build 🚧 | ||
run: yarn build | ||
|
||
- name: Upload coverage to Codecov ☔ | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
env_vars: OS, NODE | ||
fail_ci_if_error: false | ||
verbose: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
node_modules | ||
dist/* | ||
coverage | ||
.nyc_output | ||
*.log | ||
.DS_Store | ||
*.tgz | ||
node_modules | ||
dist | ||
coverage |
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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
tsdx lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach", | ||
"port": 9229, | ||
"request": "attach", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"type": "node" | ||
} | ||
] | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"name": "vscode-jest-tests", | ||
"request": "launch", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"disableOptimisticBPs": true, | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "yarn", | ||
"args": [ | ||
"test", | ||
"--runInBand" | ||
] | ||
} | ||
] | ||
} |
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,6 @@ | ||
{ | ||
"jest.jestCommandLine": "yarn test", | ||
"cSpell.words": [ | ||
"mockingoose" | ||
] | ||
} |
Oops, something went wrong.