chore: update dependencies #114
This file contains hidden or 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: "TwoPi build and lint" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install the Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable,nightly | |
components: rustfmt,clippy | |
cache-workspaces: "twopi-service -> target" | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10 | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: "pnpm" | |
cache-dependency-path: twopi-web/pnpm-lock.yaml | |
- name: twopi-web - install dependencies | |
run: pnpm install --frozen-lockfile | |
working-directory: twopi-web | |
- name: twopi-web - gen routes | |
run: pnpm run gen:routes | |
working-directory: twopi-web | |
- name: twopi-service - fmt | |
run: cargo +nightly fmt --check | |
working-directory: twopi-service | |
- name: twopi-service - lint | |
run: cargo +stable clippy -- -D warnings | |
working-directory: twopi-service | |
- name: twopi-service - build | |
run: cargo +stable build --release | |
working-directory: twopi-service | |
- name: twopi-service - gen openapi | |
run: cargo +stable run --release -- gen-api ../twopi-web/openapi.gen.json | |
env: | |
TWOPI_DATA_DIR: ../data | |
CURRENCY_API_KEY: | |
TWOPI_SECRET_KEY: | |
working-directory: twopi-service | |
- name: twopi-web - fmt | |
run: pnpm run fmt | |
working-directory: twopi-web | |
- name: twopi-web - lint | |
run: pnpm run lint | |
working-directory: twopi-web | |
- name: twopi-web - gen openapi types | |
run: pnpm run gen:api-file | |
working-directory: twopi-web | |
- name: twopi-web - type check | |
run: pnpm run typecheck | |
working-directory: twopi-web | |
- name: twopi-web - build | |
run: pnpm run build | |
working-directory: twopi-web |