-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (43 loc) · 1.35 KB
/
runOnGitHub.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
# .github/workflows/runOnGitHub.yml
# GitHub Actions documentation
# => https://docs.github.com/en/actions
name: runOnGitHub
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
gradle:
strategy:
matrix:
#os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: 11
- name: install dependencies ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt install libcurl4-openssl-dev
# Execute Gradle commands in GitHub Actions workflows
# => https://github.com/marketplace/actions/gradle-command
- id: gradle
name: ./gradlew runOnGitHub
uses: eskatos/gradle-command-action@v1
with:
arguments: runOnGitHub
wrapper-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
- id: artifact
name: Add build scan to the artifact
uses: actions/upload-artifact@v2
with:
name: buildscan-assemble
path: 'buildscan.log'