Skip to content

Commit

Permalink
Release in own step
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed May 7, 2024
1 parent 995b350 commit 2e58861
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build
run: cargo build --all --release --tests
run: cargo build --all --tests

fmt:
needs: build
Expand Down Expand Up @@ -158,4 +158,35 @@ jobs:
- name: Run unit and integration tests
env:
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/postgres"
run: cargo test -r -p ${{ matrix.package }} -- --include-ignored
run: cargo test -r -p ${{ matrix.package }} -- --include-ignored
release:
needs: build
runs-on: oracles-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-clippy
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Rust install
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build
run: cargo build --all --release

0 comments on commit 2e58861

Please sign in to comment.