-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (51 loc) · 1.41 KB
/
test-tools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test tools
on:
push:
branches: ["develop"]
pull_request:
branches: ["develop"]
workflow_dispatch:
jobs:
install-gradle-linux-test:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- uses: actions/checkout@v4
- name: Check there is no Gradle installed
run: gradle --version || exit 0
- name: Install deps
run: apt update && apt install -y sudo wget curl openjdk-17-jdk
- name: Install Gradle
run: sudo bash ./.tools/installGradle-8.11.sh
- name: Check Gradle
run: gradle --version
install-gradle-windows-test:
runs-on: windows-latest
if: false # Skip for now, currently broken
steps:
- uses: actions/checkout@v4
- name: Disable pre-installed Gradle
shell: pwsh
run: choco uninstall gradle
- name: Check there is no Gradle installed
shell: pwsh
run: |
try {
gradle --version
} catch {
Write-Error $_.Exception.Message
} finally {
exit 0
}
- name: Install Gradle
shell: pwsh
run: .tools/installGradle-8.11.ps1
- name: Refresh environment
shell: pwsh
run: |
Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1"
refreshenv
- name: Check Gradle
shell: pwsh
run: gradle --version