Skip to content

Commit

Permalink
ci: tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
av8ta committed Apr 7, 2024
1 parent 1912be6 commit 5e5a3ac
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ concurrency:

jobs:
build:
name: Build and Test
name: Build, Test & Deploy
timeout-minutes: 15
runs-on: ubuntu-latest
environment:
Expand All @@ -40,63 +40,40 @@ jobs:
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/wasm-pack-action@v0.4.0
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: pnpm turbo run build

- name: Test
run: pnpm turbo run test

- uses: actions/upload-artifact@v4
with:
name: cadmium
path: applications/web/dist

# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
# with:
# name: cadmium
# path: applications/web/dist
- name: Setup Pages
- name: Setup Github Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit 5e5a3ac

Please sign in to comment.