fix for missing bid submissions (#351) #1267
This file contains hidden or 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: Unit Tests | |
| on: | |
| push: | |
| branches: [main, staging, develop] | |
| pull_request: | |
| branches: [main, staging, develop] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| unit-test: | |
| # TODO: fix tests | |
| if: false | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| services: | |
| postgres: | |
| image: timescale/timescaledb-ha:pg16 | |
| env: | |
| POSTGRES_PASSWORD: password | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U postgres" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: "0" | |
| path: ./repos/${{ secrets.REPO_NAME }} | |
| ref: ${{ github.ref }} | |
| - name: Change to project directory | |
| run: cd ./repos/${{ secrets.REPO_NAME }} | |
| # Set up the nightly Rust toolchain | |
| - name: Set up Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: nightly-2023-06-01 | |
| override: true | |
| components: rustfmt, clippy | |
| # Run unit tests | |
| - name: Run unit tests | |
| env: | |
| DATABASE_URL: "postgres://postgres:password@localhost:5432/postgres" | |
| run: cargo test --workspace --all-features | |
| working-directory: ./repos/${{ secrets.REPO_NAME }} |