[@tools-website] Fix: App Navigation #6677
Workflow file for this run
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: CI (build, lint, test) | |
# All pull requests, and | |
# Workflow dispatch allows you to run this workflow manually from the Actions tab | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
jobs: | |
build: | |
name: Build & unit test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
show-progress: false | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint monorepo root | |
run: pnpm run lint | |
- name: Build, lint, test all packages | |
run: pnpm turbo lint build test | |
integration-tests: | |
name: INT - ${{ matrix.package }} | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: ['@kadena/client', '@kadena/client-utils'] | |
services: | |
devnet: | |
image: kadena/devnet | |
options: | |
--memory 7g --cpus 2 --health-cmd "curl --verbose --fail | |
http://localhost:8080/info || exit 1" | |
ports: | |
- 8080:8080 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
show-progress: false | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: run integration tests | |
run: pnpm run test:integration --filter ${{ matrix.package }} | |
end-to-end-tests: | |
name: E2E - ${{ matrix.app }} | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
app: ['tools'] | |
services: | |
devnet: | |
image: kadena/devnet | |
options: | |
--memory 7g --cpus 2 --health-cmd "curl --verbose --fail | |
http://localhost:8080/info || exit 1" | |
ports: | |
- 8080:8080 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
show-progress: false | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install browsers | |
run: pnpm --filter @kadena-dev/e2e-tests run install:chromium | |
- name: build dApp | |
run: pnpm turbo build --filter @kadena/${{ matrix.app }} | |
- name: Run Tests | |
run: pnpm run test:e2e -- -c playwright.${{ matrix.app }}.config.ts | |
env: | |
CI: true | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: packages/tools/e2e-tests/playwright-report/ | |
retention-days: 30 |