fix: fix broken tests and ignore expensive tests #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test PR | |
on: | |
pull_request: | |
branches: | |
- "master" | |
paths-ignore: | |
- .github/workflows/charts-* | |
- charts/** | |
- .release-please-manifest.json | |
- release-please-config.json | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pr-tests: | |
strategy: | |
matrix: | |
include: | |
- features: '' | |
- features: 'testnet' | |
name: Run cargo tests | |
runs-on: | |
group: "CPUBound" | |
permissions: | |
contents: read | |
checks: write | |
security-events: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: libsecp256k1-dev libsodium-dev liblz4-dev | |
- uses: arduino/setup-protoc@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-unknown-linux-gnu | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- run: cargo test --target x86_64-unknown-linux-gnu --no-fail-fast --features "${{ matrix.features }}" | |
env: | |
RUSTFLAGS: "" | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
CMAKE_C_COMPILER_LAUNCHER: "sccache" | |
CMAKE_CXX_COMPILER_LAUNCHER: "sccache" |