Skip to content
8 changes: 6 additions & 2 deletions .github/workflows/bump-openclaw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
- cron: '0 */12 * * *' # Every 12 hours (midnight and noon UTC)
workflow_dispatch: {}

permissions:
contents: read

jobs:
check:
runs-on: ${{ vars.RUNNER_DEFAULT_LABEL || 'ubuntu-latest' }}
timeout-minutes: 10
steps:
- uses: useblacksmith/checkout@v1
- uses: useblacksmith/checkout@41cdeedae8edb2e684ba22896a5fd2a3cb85db6b # v1
with:
sparse-checkout: kiloclaw/Dockerfile
sparse-checkout-cone-mode: false
Expand Down Expand Up @@ -96,7 +100,7 @@ jobs:
- name: Notify Slack
if: steps.age.outputs.recent == 'true'
continue-on-error: true
uses: slackapi/slack-github-action@v2
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
env:
CURRENT_VERSION: ${{ steps.current.outputs.version }}
NEW_VERSION: ${{ steps.latest.outputs.version }}
Expand Down
43 changes: 18 additions & 25 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- '**'
workflow_dispatch:

permissions:
contents: read

# Cancel in-progress jobs when new workflow is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -17,6 +20,7 @@ concurrency:
jobs:
playwright:
runs-on: ${{ vars.RUNNER_LARGE_LABEL || 'ubuntu-24.04-8core' }}
timeout-minutes: 30

services:
postgres:
Expand All @@ -41,18 +45,18 @@ jobs:
DOTENV_PRIVATE_KEY_DEVELOPMENT: ${{ secrets.DOTENV_PRIVATE_KEY_DEVELOPMENT }}

steps:
- uses: useblacksmith/checkout@v1
- uses: useblacksmith/checkout@41cdeedae8edb2e684ba22896a5fd2a3cb85db6b # v1
with:
lfs: true
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '22'
node-version: 22
cache: 'pnpm'

- name: Install dependencies
Expand All @@ -70,7 +74,7 @@ jobs:
run: pnpm test:e2e
continue-on-error: true

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: always()
with:
name: test-results
Expand All @@ -80,35 +84,24 @@ jobs:
chromatic:
needs: playwright
runs-on: ${{ vars.RUNNER_DEFAULT_LABEL || 'ubuntu-latest' }}
timeout-minutes: 30
if: always() # Run even if playwright job fails
continue-on-error: true # Make this check optional - don't block PR merges
steps:
- name: Checkout code
uses: useblacksmith/checkout@v1
uses: useblacksmith/checkout@41cdeedae8edb2e684ba22896a5fd2a3cb85db6b # v1
with:
lfs: true
fetch-depth: 0

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

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -118,7 +111,7 @@ jobs:
cd storybook
pnpm install --frozen-lockfile

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: test-results
path: ./test-results
Expand All @@ -135,7 +128,7 @@ jobs:

- name: Run Chromatic
id: chromatic
uses: chromaui/action@latest
uses: chromaui/action@f191a0224b10e1a38b2091cefb7b7a2337009116 # v16.0.0
continue-on-error: true
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand Down
Loading
Loading