Skip to content

Commit

Permalink
Remove caching
Browse files Browse the repository at this point in the history
  • Loading branch information
const-cloudinary committed Jan 29, 2025
1 parent 1c1861c commit 613a4ef
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
build:
name: 🐹 Build & Test with Go ${{ matrix.go-version }}
name: 🐹 Test with Go ${{ matrix.go-version }}
runs-on: ubuntu-latest

strategy:
Expand All @@ -24,21 +24,6 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- name: 🧹 Clean Go Module Cache
run: rm -rf ~/go/pkg/mod

- name: 💾 Cache Go Modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}-v2
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
${{ runner.os }}-go-
${{ runner.os }}-
- name: 📦 Install Dependencies
run: go mod download

Expand All @@ -51,11 +36,11 @@ jobs:
- name: 🧰 Install gotestsum
run: go install gotest.tools/gotestsum@latest

- name: 🧪 Run Tests with gotestsum
- name: 🧪 Run Tests
run: |
gotestsum --junitfile unit-tests.xml --format pkgname ./...
- name: 📊 Display Test Summary
- name: 📊 Test Summary
uses: test-summary/action@v2
with:
paths: "unit-tests.xml"
Expand Down

0 comments on commit 613a4ef

Please sign in to comment.