fix(ci): simplify workflow to use rust:1.83-bullseye container
Some checks failed
Lint and Build / lint-and-build (push) Failing after 1m20s
Some checks failed
Lint and Build / lint-and-build (push) Failing after 1m20s
This commit is contained in:
parent
c8f64614b0
commit
a5db33990e
1 changed files with 15 additions and 26 deletions
|
|
@ -5,35 +5,24 @@ on:
|
|||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features
|
||||
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- name: Build Rust project
|
||||
run: cargo build --release
|
||||
|
||||
docker-build:
|
||||
lint-and-build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
image: rust:1.83-bullseye
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker image
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd backend
|
||||
docker build -t normogen-backend:latest .
|
||||
apt-get update
|
||||
apt-get install -y git nodejs pkg-config libssl-dev
|
||||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
- name: Build Rust project
|
||||
run: cargo build --release
|
||||
|
||||
- name: Test Rust project
|
||||
run: cargo test --verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue