Skip to content

Commit

Permalink
build, ci: run tests outside docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Nov 7, 2024
1 parent 12ad1e9 commit c89feba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
GOOGLE_REGISTRY: europe-north1-docker.pkg.dev
GITHUB_REGISTRY: ghcr.io
jobs:
Expand All @@ -18,6 +19,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --features docker
- uses: nais/platform-build-push-sign@main
id: build_push_sign
with:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
on: [pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ RUN \
export CC_aarch64_unknown_linux_musl=aarch64-linux-gnu-gcc ; \
export CXX_aarch64_unknown_linux_musl=aarch64-linux-gnu-g++ ; \
fi ; \
cargo test --release --target ${TARGET} --features docker -- --test-threads 1 ; \
cargo build --release --target ${TARGET} && mkdir -p target/final/release/ && mv target/${TARGET}/release/texas target/final/release/texas ; \
file target/final/release/texas

Expand Down

0 comments on commit c89feba

Please sign in to comment.