Skip to content

Commit 1bb1df5

Browse files
committed
Update CI tests to force gradle removal and to remove vars fetch
1 parent 6167c0c commit 1bb1df5

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

.github/workflows/ci-tests.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,9 @@ name: Gradle Tests (CI)
33
on: push
44

55
jobs:
6-
vars:
7-
name: Get Variables
8-
runs-on: ubuntu-20.04
9-
outputs:
10-
release_type: ${{steps.cf_release_type.outputs.value }}
11-
mod_version: ${{steps.mod_version.outputs.value }}
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
16-
- name: Release Type
17-
id: cf_release_type
18-
uses: christian-draeger/[email protected]
19-
with:
20-
path: './gradle.properties'
21-
property: 'cf_release_type'
22-
23-
- name: Mod Version
24-
id: mod_version
25-
uses: christian-draeger/[email protected]
26-
with:
27-
path: './gradle.properties'
28-
property: 'mod_version'
29-
306
jar:
31-
name: Publish JAR
7+
name: Test with Gradle
328
runs-on: ubuntu-20.04
33-
needs: [vars]
349
steps:
3510
- name: Checkout
3611
uses: actions/checkout@v2
@@ -40,8 +15,15 @@ jobs:
4015
with:
4116
java-version: "8.0.282"
4217

18+
- name: Ensure fresh gradle install
19+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
20+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
21+
run: |
22+
rm -rf ~/.gradle
23+
4324
- name: Test JAR with Gradle
4425
run: ./gradlew test
4526
env:
4627
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
4728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+

0 commit comments

Comments
 (0)