Skip to content

Update Koa docs and add an example with Egg framework #2174

Update Koa docs and add an example with Egg framework

Update Koa docs and add an example with Egg framework #2174

name: Website Integrity
on:
pull_request:
paths:
- 'website/**'
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
website-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Fetch
run: git fetch origin main
- name: Setup env
uses: the-guild-org/shared-config/setup@v1
with:
node-version-file: .node-version
- name: Build Packages
run: pnpm build
- name: Typecheck
run: pnpm --filter website run build
- name: Compare
run: git diff origin/${{ github.base_ref }}.. -- website/route-lockfile.txt
- name: Diff to file
if: always()
id: diff_result
run: |
OUTPUT=$(git diff origin/${{ github.base_ref }}.. -- website/route-lockfile.txt)
OUTPUT="${OUTPUT//'%'/'%25'}"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
echo "result=$OUTPUT" >> $GITHUB_OUTPUT
- name: Publish a message
if: always() && contains(steps.diff_result.outputs.result, 'diff')
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
```diff
${{ steps.diff_result.outputs.result }}
```