fix: fetch main branch before checkout
This commit is contained in:
parent
e5623023aa
commit
46435090c9
|
|
@ -34,7 +34,7 @@ jobs:
|
||||||
name: Setup Environment
|
name: Setup Environment
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
@ -78,7 +78,7 @@ jobs:
|
||||||
- test_service: "admin_frontend"
|
- test_service: "admin_frontend"
|
||||||
test_cmd: "-p admin_frontend"
|
test_cmd: "-p admin_frontend"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -139,6 +139,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run Tests from main branch
|
- name: Run Tests from main branch
|
||||||
run: |
|
run: |
|
||||||
|
git fetch origin main
|
||||||
git checkout main
|
git checkout main
|
||||||
RUST_LOG="info" DISABLE_CI_TEST_LOG="true" cargo test ${{ matrix.test_cmd }}
|
RUST_LOG="info" DISABLE_CI_TEST_LOG="true" cargo test ${{ matrix.test_cmd }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue