Skip to content

Commit

Permalink
chore(ci): fix ci workflow (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: Lam Tran <[email protected]>
  • Loading branch information
tranngoclam authored Oct 31, 2023
1 parent 9642ac4 commit 171d18f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ jobs:
test-go:
name: Test (Go)
runs-on: ubuntu-latest
strategy:
matrix:
dir: [api, bar, foo, lib]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: ${{ matrix.dir }}/go.mod
- run: go test -v ./...
working-directory: ${{ matrix.dir }}
go-version-file: foo/go.mod
cache-dependency-path: foo/go.sum
cache: true
- run: |
go test -v foo/...
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# vendor/

# Go workspace file
go.work
go.work.sum

.idea
Expand Down
8 changes: 8 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go 1.21.3

use (
./api
./bar
./foo
./lib
)

0 comments on commit 171d18f

Please sign in to comment.