Skip to content

Commit

Permalink
refactor: remove duplicated cache
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Sep 21, 2024
1 parent 27207e9 commit 7bf6a43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/be-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,11 @@ jobs:
distribution: temurin
cache: gradle

- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}
restore-keys: ${{ runner.os }}-gradle-

- name: Add execute permissions
working-directory: backend
run: chmod +x gradlew

- name: Build
working-directory: backend
run: ./gradlew build -x test
run: |
chmod +x gradlew
./gradlew build -x test
- name: Setup environment variables
uses: appleboy/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fe-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache: npm
cache-dependency-path: "frontend/package-lock.json"

- name: Install modules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public Basic basic(@ModelAttribute @Valid NameRequest nameRequest) {

@GetMapping("test")
public String test() {
return "tetetete";
return "haha";
}
}

0 comments on commit 7bf6a43

Please sign in to comment.