-
Notifications
You must be signed in to change notification settings - Fork 72
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
5 changed files
with
108 additions
and
28 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,17 @@ | ||
titleOnly: true | ||
types: | ||
- feat | ||
- fix | ||
- docs | ||
- dx | ||
- refactor | ||
- perf | ||
- test | ||
- workflow | ||
- build | ||
- ci | ||
- chore | ||
- types | ||
- wip | ||
- release | ||
- deps |
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,47 @@ | ||
name: CI | ||
|
||
on: | ||
# allows to manually run the job at any time | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
test: | ||
name: 'Run Unit Test: node-16, ubuntu-latest' | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup docker | ||
uses: docker-practice/[email protected] | ||
|
||
- name: Docker pull macacajs/reliable-mysql | ||
run: | | ||
docker pull macacajs/reliable-mysql | ||
docker run --rm --name reliable-mysql -p 13306:3306 -d macacajs/reliable-mysql | ||
docker ps -a | ||
- name: Set node version to 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install deps | ||
run: npm install | ||
|
||
- name: Run ci | ||
run: npm run ci | ||
env: | ||
MYSQL_PORT: 13306 | ||
|
||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_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,41 @@ | ||
name: Docs Build | ||
|
||
on: | ||
# allows to manually run the job at any time | ||
workflow_dispatch: | ||
|
||
# run on every push on the master branch | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
docs-build: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set node version to 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install deps | ||
run: | | ||
npm install vuepress -D | ||
npm install macaca-ecosystem -D | ||
- name: Build docs | ||
run: npm run docs:build | ||
|
||
- name: Deploy to GitHub Pages | ||
if: success() | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs_dist |
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