-
Notifications
You must be signed in to change notification settings - Fork 37
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
1 parent
56ec341
commit 6c88bb9
Showing
26 changed files
with
1,056 additions
and
99 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,64 @@ | ||
name: Usetheform CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
tests: | ||
name: Unit Tests + Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run tests 🧪 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
- run: npm ci | ||
- run: npm run test:cov | ||
|
||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build 🔨 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
|
||
deploy_docs: | ||
name: Deploy Docs | ||
runs-on: ubuntu-latest | ||
needs: [tests, build] | ||
if: github.ref == 'refs/heads/master' | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Docs 🔨 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14.x' | ||
- run: npm ci | ||
- run: npm run docz:build --if-present | ||
- run: rm .gitignore | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: .docz/dist # The folder the action should deploy. | ||
|
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
Oops, something went wrong.