Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 26
cache: "npm"
cache: "pnpm"
- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: npm ci
- run: npm run build
- run: pnpm ci
- run: pnpm run build
- name: Upload dist
uses: actions/upload-artifact@v7
with:
Expand All @@ -74,43 +75,46 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 26
cache: "npm"
- run: npm ci
- run: npm run fmt:check
cache: "pnpm"
- run: pnpm ci
- run: pnpm run fmt:check

oxlint:
name: Oxlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 26
cache: "npm"
- run: npm ci
- run: npm run lint
cache: "pnpm"
- run: pnpm ci
- run: pnpm run lint

lhci-file:
name: Lighthouse (file)
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 26
cache: "npm"
cache: "pnpm"
- name: Download dist
uses: actions/download-artifact@v8
with:
name: dist
path: dist
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@latest
pnpm install -g @lhci/cli@latest
lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
Expand All @@ -123,11 +127,12 @@ jobs:
concurrency: firebase-deploy
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 26
cache: "npm"
- run: npm ci
cache: "pnpm"
- run: pnpm ci
- name: Download dist
uses: actions/download-artifact@v8
with:
Expand All @@ -146,13 +151,14 @@ jobs:
needs: deploy
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 26
cache: "npm"
cache: "pnpm"
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@latest
pnpm install -g @lhci/cli@latest
lhci autorun --collect.url=https://othello-rust.web.app/
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ You can play Othello in your browser at [othello-rust.web.app](https://othello-r

1. install Node.js from [nodejs.org](https://nodejs.org/en/download)
1. install Rust from [rustup.rs](https://rustup.rs/)
1. install pnpm from [pnpm.io](https://pnpm.io/installation)
1. install node dependencies
```bash
npm ci
pnpm ci
```
1. run the development server
```bash
npm run dev
pnpm run dev
```
1. build for production
```bash
npm run build
pnpm run build
```
1. preview build
```bash
npm run preview
pnpm run preview
```
Loading