Skip to content

Refactor

Refactor #10

Workflow file for this run

name: CI
on:
push:
# branches: ["main"]
branches: ["*"]
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- uses: jetli/[email protected]
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: "latest"
- name: Build cadmium
run: pnpm build:wasm
- name: Install dependencies
run: pnpm install
- name: Install playwright dependencies
run: pnpm exec playwright install
- name: Build
run: turbo build
- name: Test
run: turbo test
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: applications/web/dist
branch: gh-pages