Skip to content

Commit

Permalink
Simplify tests workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Sep 13, 2023
1 parent 5712913 commit c5eddae
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ jobs:


tests:
name: test-${{ matrix.target }}
name: ${{ matrix.target }}-tests
strategy:
matrix:
target: [tests, integration]
target: [general, integration]
runs-on: ubuntu-latest
env:
RUST_TOOLCHAIN: "nightly"
RUST_MIN_STACK: 8388608
# SCCACHE_GHA_ENABLED: "true"
# RUSTC_WRAPPER: "sccache"
steps:
Expand All @@ -64,10 +65,26 @@ jobs:
RUST_TOOLCHAIN: ${{ env.RUST_TOOLCHAIN }}
- name: Check out code
uses: actions/checkout@v3
- name: Run tests
run: ./ci/script.sh
env:
TARGET: ${{ matrix.target }}

- name: runtime-benchmarks and try-runtime
if: ${{ matrix.target == 'general' }}
run: |
cargo test --workspace --release \
--features runtime-benchmarks,try-runtime \
--exclude runtime-integration-tests
- name: fast-runtime integration tests
if: ${{ matrix.target == 'integration' }}
run: |
cargo test --release \
--features fast-runtime \
--package runtime-integration-tests
# - name: Run sccache stat for check
# shell: bash
# run: ${SCCACHE_PATH} --show-stats

# - name: Run tests
# run: ./ci/script.sh
# env:
# TARGET: ${{ matrix.target }}

0 comments on commit c5eddae

Please sign in to comment.