From 3c95293731231330767bb59ce8f9a3991985aaa9 Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Tue, 19 Mar 2024 10:36:10 -0400 Subject: [PATCH] fix CI to checkout submodule --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 544b81b9..033571cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,8 +62,6 @@ jobs: go: [ '1.19', '1.20' ] arch: [ 'x32', 'x64' ] runs-on: ubuntu-22.04 - env: - INTEG_TESTS: yes steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -71,12 +69,16 @@ jobs: go-version: ${{ matrix.go }} architecture: ${{ matrix.arch }} cache: true + submodules: true # x86 specific build. - if: matrix.arch == 'x32' run: | sudo apt-get update sudo apt-get install gcc-multilib - go test raft-compat/... + cd raft-compat + go test ./... # x86-64 specific build. - if: matrix.arch == 'x64' - run: go test -race raft-compat/... + run: | + cd raft-compat + go test -race ./...