From dee1c30db98cb54d36797be1d68e8d6136a98545 Mon Sep 17 00:00:00 2001 From: Sean O'Hair Date: Fri, 1 Sep 2023 14:43:36 -0700 Subject: [PATCH 1/5] fix: Use latest Ubuntu GitHub Action Runners for automated tests Signed-off-by: Sean O'Hair --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e1598ee..00370d9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ on: branches: [main] jobs: Unit_Test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 @@ -25,7 +25,7 @@ jobs: run: make test Integration_Test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 From 7fc10fa0dcce562ab3451014a6ad8b4f6a016cd6 Mon Sep 17 00:00:00 2001 From: Sean O'Hair Date: Fri, 1 Sep 2023 14:45:34 -0700 Subject: [PATCH 2/5] fix: Improve build time for integration test job Signed-off-by: Sean O'Hair --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 00370d9..2b94dd5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,7 @@ jobs: run: sudo apt install libzmq3-dev - name: Build Containers - run: make docker + run: make -j2 docker - name: Run Integration_Test run: make integration-test \ No newline at end of file From ca2ed4b7742b08909d19fb126f21ac1776ff5de6 Mon Sep 17 00:00:00 2001 From: Sean O'Hair Date: Fri, 1 Sep 2023 17:29:16 -0700 Subject: [PATCH 3/5] fix: Download go mod before integration test Signed-off-by: Sean O'Hair --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2b94dd5..b23bae1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,5 +36,8 @@ jobs: - name: Build Containers run: make -j2 docker + - name: Download go-mod + run: go mod tidy + - name: Run Integration_Test run: make integration-test \ No newline at end of file From b22d8a8f73c7f4ab2f01d8c2e4ead508f9ad4624 Mon Sep 17 00:00:00 2001 From: Sean O'Hair Date: Thu, 7 Sep 2023 11:16:23 -0700 Subject: [PATCH 4/5] feat: update go version to 1.20.8, add cacheing for container build Signed-off-by: Sean O'Hair --- .github/workflows/tests.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b23bae1..fb9e751 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Go ENV uses: actions/setup-go@v4 with: - go-version: '1.20.5' + go-version: '1.20.8' - name: Install Dependencies run: sudo apt install libzmq3-dev @@ -30,6 +30,16 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 + - uses: actions/cache@v2 + with: + key: ${{ github.ref }} + path: .cache + + - name: Setup Go ENV + uses: actions/setup-go@v4 + with: + go-version: '1.20.8' + - name: Install Dependencies run: sudo apt install libzmq3-dev From eeeda27dd65471f27160a50ef04fc4f529243b98 Mon Sep 17 00:00:00 2001 From: Sean O'Hair Date: Thu, 7 Sep 2023 11:38:07 -0700 Subject: [PATCH 5/5] fix: remove improper cacheing for container build Signed-off-by: Sean O'Hair --- .github/workflows/tests.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fb9e751..19a1d3b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,11 +30,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 - - uses: actions/cache@v2 - with: - key: ${{ github.ref }} - path: .cache - - name: Setup Go ENV uses: actions/setup-go@v4 with: