Skip to content

Commit

Permalink
restored taikoon-ui-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 committed May 14, 2024
1 parent 1d6bf06 commit 3976980
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/taikoon-ui-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Taikoon UI Build and Checks

on: workflow_call

jobs:
build:
runs-on: [taiko-runner]
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies
# This step is needed because the .env file is not committed to the repository
# and the Svelte check complains about not finding the exports from $env/static/public,
# which will be generated based on the .env file when running `svelte-kit sync`
- name: Copy .env.example to .env
working-directory: ./packages/taikoon-ui
run: cp .env.example .env

- name: Frontend build
working-directory: ./packages/taikoon-ui
run: pnpm build

- name: Svelte check
working-directory: ./packages/taikoon-ui
run: pnpm check

- name: Check formatting
working-directory: ./packages/taikoon-ui
run: pnpm lint

- name: Unit tests
env:
SKIP_ENV_VALIDATION: "true"
working-directory: ./packages/taikoon-ui
run: pnpm test:unit

0 comments on commit 3976980

Please sign in to comment.