From 865b7666a16e27e988040ea034d06ec795df24e4 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 12 Aug 2023 10:56:02 +0200 Subject: [PATCH] build: download Go modules before running tests Signed-off-by: deadprogram --- .github/workflows/linux.yml | 2 ++ .github/workflows/macos.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d8a59ae..fa487e8 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -20,6 +20,8 @@ jobs: uses: actions/checkout@v3.5.3 - name: TinyGo version check run: tinygo version + - name: Download Go modules + run: go mod download - name: Run unit tests run: go test - name: Run TinyGo smoke tests diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 2089554..bac1d94 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -22,6 +22,8 @@ jobs: go-version: '1.18' - name: Checkout uses: actions/checkout@v3.5.3 + - name: Download Go modules + run: go mod download - name: Run unit tests run: go test - name: "Run macOS smoke tests" @@ -37,6 +39,8 @@ jobs: go-version: '1.21' - name: Checkout uses: actions/checkout@v3.5.3 + - name: Download Go modules + run: go mod download - name: Run unit tests run: go test - name: "Run macOS smoke tests"