diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml index 22b68a8..4ecf548 100644 --- a/.github/workflows/release-new-version.yml +++ b/.github/workflows/release-new-version.yml @@ -52,42 +52,42 @@ jobs: - name: Run Clippy run: cargo clippy - # end_to_end_tests: - # runs-on: ubuntu-latest - # needs: format_and_lint - # environment: staging-fidl - - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Cache Cargo registry - # uses: actions/cache@v2 - # with: - # path: | - # ~/.cargo/registry - # ~/.cargo/git - # key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - # restore-keys: | - # ${{ runner.os }}-cargo-registry- - - # - name: Cache Cargo build - # uses: actions/cache@v2 - # with: - # path: target - # key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} - # restore-keys: | - # ${{ runner.os }}-cargo-build- - - # - name: Run tests - # env: - # GH_PRIVATE_KEY: ${{ secrets.GH_PRIVATE_KEY }} - # DB_URL: ${{secrets.DB_URL}} - # run: cargo test -- --nocapture + end_to_end_tests: + runs-on: ubuntu-latest + needs: format_and_lint + environment: staging-fidl + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Cache Cargo registry + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-registry- + + - name: Cache Cargo build + uses: actions/cache@v2 + with: + path: target + key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-build- + + - name: Run tests + env: + GH_PRIVATE_KEY: ${{ secrets.GH_PRIVATE_KEY }} + DB_URL: ${{secrets.DB_URL}} + run: cargo test -- --nocapture build_and_push: runs-on: ubuntu-latest - needs: [format_and_lint] + needs: [format_and_lint, end_to_end_tests] environment: production-fidl steps: