Skip to content

Commit 65160f1

Browse files
authored
Make cache package a module (#20)
1 parent f302488 commit 65160f1

28 files changed

+27
-25
lines changed

.github/workflows/go.yml renamed to .github/workflows/build-and-test-cache.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
name: Build and Test
1+
name: Build and Test Cache Module
22

33
on:
44
pull_request:
55
types: [opened, reopened, synchronize]
6+
paths:
7+
- 'cache/**'
68
push:
79
branches: [dev, main]
10+
paths:
11+
- 'cache/**'
812

913
jobs:
1014
build_test:
@@ -19,18 +23,21 @@ jobs:
1923

2024
- uses: actions/setup-go@v4
2125
with:
22-
go-version-file: "go.mod"
26+
go-version-file: "./cache/go.mod"
2327

2428
- name: Build
25-
run: go build -x ./extensions/...
29+
working-directory: ./cache
30+
run: go build -x
2631

2732
- name: Test
33+
working-directory: ./cache
2834
run: go test -race -v ./...
2935

3036
- name: Lint
3137
# lint even when a previous step failed
3238
if: ${{!cancelled()}}
3339
uses: golangci/golangci-lint-action@v3
3440
with:
41+
working-directory: ./cache
3542
version: v1.52
3643
args: -v
File renamed without changes.
File renamed without changes.
File renamed without changes.

extensions/cache/accessor/file/file.go renamed to cache/accessor/file/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"path/filepath"
1111
"sync"
1212

13-
"github.com/AzureAD/microsoft-authentication-extensions-for-go/extensions/cache/accessor"
13+
"github.com/AzureAD/microsoft-authentication-extensions-for-go/cache/accessor"
1414
)
1515

1616
// Storage stores data in an unencrypted file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)