Skip to content

Commit

Permalink
ci(docs): run docs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hbriese committed Jul 15, 2024
1 parent 6781e7e commit e760886
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 30 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,4 @@ jobs:
- name: 🚀 Publish update
run: yarn app deploy:update

# docs:
# environment: main - docs
# runs-on: ubuntu-latest

# steps:
# - name: 🚀 Deploy
# uses: fjogeleit/http-request-action@v1
# with:
# url: ${{ secrets.DEPLOY_HOOK }}
# method: POST
# Docs deployed via Vercel
27 changes: 11 additions & 16 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,24 +199,19 @@ jobs:

- name: 🧪 Verify analytics implementation
run: cd app && ampli status -t ${{secrets.AMPLI_TOKEN}} --is-merged --is-latest
# site:
# runs-on: ubuntu-latest

# steps:
# - name: 🚧 Checkout
# uses: actions/checkout@v4
docs:
runs-on: ubuntu-latest

# - name: 🚧 Setup Node
# uses: actions/setup-node@v4
# with:
# cache: 'yarn'
# node-version-file: '.nvmrc'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup

# - name: 📦 Install
# run: yarn
- name: 📦 Install
run: yarn

# - name: 🏗️ Build
# run: yarn site build
- name: 🏗️ Build
run: yarn docs build

# - name: 🧪 Typecheck
# run: yarn site typecheck
- name: 🧪 Typecheck
run: yarn site typecheck
3 changes: 1 addition & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
"test": "typecheck"
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"outputs": ["build/**"]
},
"test": {
"typecheck": {
"dependsOn": ["build"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"api": "yarn turbo run -F api",
"app": "yarn turbo run -F app",
"contracts": "yarn turbo run -F contracts",
"docs": "yarn turbo run -F docs",
"lib": "yarn turbo run -F lib",
"site": "yarn turbo run -F site",
"chains": "yarn turbo run -F chains",
"dev": "yarn turbo run dev",
"test": "yarn turbo run test",
Expand Down

0 comments on commit e760886

Please sign in to comment.