Skip to content

Commit

Permalink
Rever test job
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-wal committed Jul 23, 2024
1 parent 6178d38 commit 2e65d26
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2e65d26

Please sign in to comment.