Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmv committed Dec 2, 2023
1 parent 494e054 commit 77a2ee3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 40 deletions.
79 changes: 40 additions & 39 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@

name: Test

on: [push, pull_request]
on: [push]

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
steps:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
# Use the latest stable Rust version for lint checks to
# verify any new Clippy warnings that may appear.
toolchain: stable
default: true
components: clippy, rustfmt
- uses: actions/checkout@v2
- uses: mozilla-actions/[email protected]
- run: sudo apt update
- run: sudo apt install pre-commit
- run: ./lint.sh
# lint:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# env:
# RUSTC_WRAPPER: "sccache"
# SCCACHE_GHA_ENABLED: "true"
# steps:
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# # Use the latest stable Rust version for lint checks to
# # verify any new Clippy warnings that may appear.
# toolchain: stable
# default: true
# components: clippy, rustfmt
# - uses: actions/checkout@v2
# - uses: mozilla-actions/[email protected]
# - run: sudo apt update
# - run: sudo apt install pre-commit
# - run: ./lint.sh

test-individually:
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 2
env:
AZURE_MAPS_KEY: ${{ secrets.AZURE_MAPS_KEY }}
PGSQL_TEST_HOST: ${{ secrets.PGSQL_TEST_HOST }}
Expand All @@ -42,21 +42,22 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: mozilla-actions/[email protected]
- run: ./test.sh all
- run: echo 'export RUST_LOG=trace' >config.env
- run: ./test.sh -f postgres -a postgres core

test-workspace:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
AZURE_MAPS_KEY: ${{ secrets.AZURE_MAPS_KEY }}
PGSQL_TEST_HOST: ${{ secrets.PGSQL_TEST_HOST }}
PGSQL_TEST_PORT: ${{ secrets.PGSQL_TEST_PORT }}
PGSQL_TEST_DATABASE: ${{ secrets.PGSQL_TEST_DATABASE }}
PGSQL_TEST_USERNAME: ${{ secrets.PGSQL_TEST_USERNAME }}
PGSQL_TEST_PASSWORD: ${{ secrets.PGSQL_TEST_PASSWORD }}
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
steps:
- uses: actions/checkout@v2
- uses: mozilla-actions/[email protected]
- run: ./test.sh
# test-workspace:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# env:
# AZURE_MAPS_KEY: ${{ secrets.AZURE_MAPS_KEY }}
# PGSQL_TEST_HOST: ${{ secrets.PGSQL_TEST_HOST }}
# PGSQL_TEST_PORT: ${{ secrets.PGSQL_TEST_PORT }}
# PGSQL_TEST_DATABASE: ${{ secrets.PGSQL_TEST_DATABASE }}
# PGSQL_TEST_USERNAME: ${{ secrets.PGSQL_TEST_USERNAME }}
# PGSQL_TEST_PASSWORD: ${{ secrets.PGSQL_TEST_PASSWORD }}
# RUSTC_WRAPPER: "sccache"
# SCCACHE_GHA_ENABLED: "true"
# steps:
# - uses: actions/checkout@v2
# - uses: mozilla-actions/[email protected]
# - run: ./test.sh
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ run_tests() {
cd "${dir}"

info "Testing ${dir} with default features"
cargo test ${cargo_args} -- --include-ignored ${test_args}
# cargo test ${cargo_args} -- --include-ignored ${test_args}
for feature in ${features}; do
info "Testing ${dir} with feature=${feature}"
cargo test --features="${feature}" ${cargo_args} -- --include-ignored ${test_args}
Expand Down

0 comments on commit 77a2ee3

Please sign in to comment.