chore(deps): update yarn to v4.6.0 (#159) #672
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ui: | |
name: UI Build and Check | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ui | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
cache-dependency-path: 'ui' | |
- name: Install | |
run: yarn install --immutable | |
- name: Biome Check | |
run: yarn biome ci | |
- name: Typecheck | |
run: yarn check | |
- name: Build | |
run: yarn build | |
server: | |
name: Server Build and Check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Stable with rustfmt and clippy | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Install libraries | |
run: sudo apt install -y libpq-dev libsqlite3-dev # libmysqlclient-dev | |
- name: Cargo Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
restore-keys: | | |
${{ runner.os }}-cargo-release-x86_64-unknown-linux-musl- | |
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }} | |
- name: Build | |
run: cargo build --release | |
- name: Format Check | |
run: cargo fmt -- --check | |
- name: Clippy Check | |
run: cargo clippy --release -- -D warnings | |
- name: Test | |
run: cargo test --release |