Skip to content

Commit

Permalink
feat: test openim cicd
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong <[email protected]>
  • Loading branch information
cubxxw committed Oct 13, 2023
1 parent 5e7a0ca commit 5941e7e
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation Deployment

on:
push:
branches:
- main # Trigger the action on push events to the main branch


jobs:
build_and_deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build documentation
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
34 changes: 34 additions & 0 deletions .github/workflows/main-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pull Request Checks

on:
pull_request:
branches:
- main # Trigger the action on pull requests to the main branch

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build documentation
run: npm run build

- name: Run tests
run: npm test # Replace with your test script if different

- name: Lint check
run: npm run lint

- name: Type checking
run: npm run typecheck
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ To set up the documentation locally, follow these steps:
```bash
npm run start
```
At this point, you can access the local [http://localhost:3000](http://localhost:3000/) port.


In the `package.json` file, the `scripts` section provides various commands to help you work with the documentation:

Expand Down

0 comments on commit 5941e7e

Please sign in to comment.