Skip to content

Commit

Permalink
46, 47: force prod ci build, upgrade codecov plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jac18281828 committed Jan 26, 2024
1 parent 1439a2e commit 83a2237
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and Push
- name: Build CI
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
push: false
build-args: |
VERSION=latest
CARGO_INCREMENTAL=0
- name: Build Prod CI
uses: docker/build-push-action@v3
with:
context: .
file: prod/Dockerfile
platforms: linux/amd64
push: false
build-args: |
VERSION=latest
CARGO_INCREMENTAL=0
8 changes: 1 addition & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@ jobs:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install nightly --component llvm-tools-preview
- name: Install anvil
uses: baptiste0928/cargo-install@v2
with:
crate: anvil
git: https://github.com/foundry-rs/foundry
commit: nightly
- name: Install cargo-llvm-cov
run: curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin
- name: Generate code coverage
run: RUST_LOG=xps_gateway=info,registry=info,inbox=info,messaging=info,gateway_types=info cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
Expand Down

0 comments on commit 83a2237

Please sign in to comment.