docker, nginx test #127
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
name: Client Check | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Setup Pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.1.3 | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build tiki ui | |
id: cache-tiki-ui | |
uses: actions/cache@v4 | |
with: | |
path: packages/ui/dist | |
key: ${{runner.os}}-ui-${{hashFiles('packages/ui/package.json', 'packages/ui/src/**')}} | |
restore-keys: ${{runner.os}}-ui- | |
- name: Check ui cache hit | |
if: steps.cache-tiki-ui.outputs.cache-hit != 'true' | |
run: pnpm build:ui | |
- name: Build tiki icon | |
id: cache-tiki-icon | |
uses: actions/cache@v4 | |
with: | |
path: packages/icon/dist | |
key: ${{runner.os}}-icon-${{hashFiles('packages/icon/package.json', 'packages/icon/src/**')}} | |
restore-keys: ${{runner.os}}-icon- | |
- name: Check icon cache hit | |
if: steps.cache-tiki-icon.outputs.cache-hit != 'true' | |
run: pnpm build:icon | |
- name: Check | |
run: | | |
set -o pipefail | |
pnpm --filter client check | tee result | |
- name: Print Summary | |
run: | | |
echo "## Check Result" >> $GITHUB_STEP_SUMMARY | |
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | |
echo "$(cat result)" >> $GITHUB_STEP_SUMMARY | |
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY |