From 5539246980fcfc1027bf5ba0010cdce6b8586d06 Mon Sep 17 00:00:00 2001 From: Nuckal777 Date: Tue, 12 Mar 2024 21:22:26 +0100 Subject: [PATCH] Add GitHub workflow --- .github/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..fe33f72 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,33 @@ +name: build +on: [push, pull_request] +jobs: + build-api: + name: Build API + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: Swatinem/rust-cache@v1 + - run: cargo build --locked --all-features --bin fastreach-api + build-ui: + name: Build UI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install and Build + run: | + npm install + npm run build + lints: + name: Lints + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + - uses: Swatinem/rust-cache@v1 + - run: cargo clippy -- -D warnings -W clippy::all -W clippy::pedantic