Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fef7d58
implement a core logic to cache dependnecies
KengoTODA Jul 13, 2021
4a7bf99
integrate the cache logic to entry points
KengoTODA Jul 13, 2021
945940e
add a user doc about the dependency cache feature
KengoTODA Jul 13, 2021
0591f86
reflect changes to the dist dir
KengoTODA Jul 13, 2021
f537562
add a prefix to the cache key
KengoTODA Jul 14, 2021
b047f97
test: extract build.gradle to a file in __tests__ dir
KengoTODA Jul 14, 2021
3e2fde2
run the restore e2e test on the specified OS
KengoTODA Jul 14, 2021
a5a0c52
add an e2e test for maven
KengoTODA Jul 14, 2021
1872d8e
fix the dependency among workflows
KengoTODA Jul 14, 2021
313e1ad
stabilize the cache on the Windows in e2e test
KengoTODA Jul 15, 2021
8687e45
add .gitignore files to __tests__/cache directories
KengoTODA Jul 15, 2021
6977c03
try to run restore after the authentication
KengoTODA Jul 14, 2021
7fe6c4d
use the key in state to save caches in the post process
KengoTODA Jul 15, 2021
fae2927
suggest users to run without daemon if fail to save Gradle cache on W…
KengoTODA Jul 20, 2021
f6a3b97
add missing description in the README.md
KengoTODA Jul 20, 2021
5f3f74c
run clean-up tasks in serial
KengoTODA Aug 2, 2021
53f73ba
Add validation for post step (#3)
dmitry-shibanov Aug 18, 2021
862dedb
Merge remote-tracking branch 'origin/main' into introduce-cache
KengoTODA Aug 18, 2021
098a656
Update src/cleanup-java.ts
KengoTODA Aug 19, 2021
cb966d0
Update src/cache.ts
KengoTODA Aug 19, 2021
6edf849
style: put the name of input to the constants.ts
KengoTODA Aug 19, 2021
0082baa
format: run `npm run build` to reflect changes to the dist dir
KengoTODA Aug 19, 2021
ea721b3
chore: update licensed files by `licensed cache`
KengoTODA Aug 19, 2021
807e574
fix: rerun ncc on macOS with node v12
KengoTODA Aug 19, 2021
33dfe17
build: follow the suggestion at PR page
KengoTODA Aug 19, 2021
67b74a1
fix: throw error in case of no package manager file found
KengoTODA Aug 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: extract build.gradle to a file in __tests__ dir
  • Loading branch information
KengoTODA committed Jul 14, 2021
commit b047f97e17c7c3c8bdb402d9812fc185f9e2f668
24 changes: 2 additions & 22 deletions .github/workflows/e2e-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ jobs:
cache: gradle
- name: Create files to cache
run: |
cat <<EOF > build.gradle
plugins { id 'java' }
repositories { mavenCentral() }
dependencies { implementation 'org.codehaus.groovy:groovy:1.8.6' }
tasks.register('downloadDependencies') { doLast {
def total = configurations.compileClasspath.inject (0) { sum, file ->
sum + file.length()
}
println total
}}
EOF
cp __tests__/cache/gradle/build.gradle .
gradle downloadDependencies
if [ ! -d ~/.gradle/caches ]; then
echo "::error::The ~/.gradle/caches directory does not exist unexpectedly"
Expand All @@ -57,17 +47,7 @@ jobs:
uses: actions/checkout@v2
- name: Create build.gradle
run: |
cat <<EOF > build.gradle
plugins { id 'java' }
repositories { mavenCentral() }
dependencies { implementation 'org.codehaus.groovy:groovy:1.8.6' }
tasks.register('downloadDependencies') { doLast {
def total = configurations.compileClasspath.inject (0) { sum, file ->
sum + file.length()
}
println total
}}
EOF
cp __tests__/cache/gradle/build.gradle .
if [ -d ~/.gradle/caches ]; then
echo "::error::The ~/.gradle/caches directory exists unexpectedly"
exit 1
Expand Down
17 changes: 17 additions & 0 deletions __tests__/cache/gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.codehaus.groovy:groovy:1.8.6'
}
tasks.register('downloadDependencies') {
doLast {
def total = configurations.compileClasspath.inject (0) { sum, file ->
sum + file.length()
}
println total
}
}