From 9d4f5ee89bc42bf7104595358a6520a10b901872 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Thu, 26 Sep 2024 12:48:51 +0200 Subject: [PATCH] Test workflow: Setup-Test-Teardown --- .github/workflows/checks.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index b66fefd..498ef9e 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -45,6 +45,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dsherret/rust-toolchain-file@v1 + - uses: extractions/setup-just@v2 - uses: actions/cache@v4 with: path: | @@ -52,13 +53,18 @@ jobs: ~/.cargo/git target key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }} - - run: | - cargo install just + + - name: โš™๏ธ Setup + run: | just get-mainnet-archive-db just pg just wait-for-pg - just test - just pg-down + + - name: ๐Ÿงช Test + run: just test + + - name: ๐Ÿ‘จโ€๐Ÿ”ง Tear down + run: just pg-down rustfmt: runs-on: ubuntu-latest