Skip to content

upgrade axum and oauth2 #35

upgrade axum and oauth2

upgrade axum and oauth2 #35

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-rust:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Rust
run: |
rustup toolchain install stable --component llvm-tools-preview
cargo install sqlx-cli --no-default-features --features native-tls,postgres --locked
cp .env.dev .env
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Install nextest
uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Check code format
run: cargo fmt -- --check
- name: Start dependent services
run: sh ./infrastructure/services-up.sh
- name: Check the package for errors
run: cargo check --all
- name: Lint rust sources
run: cargo clippy --all-targets --all-features --tests --benches -- -D warnings