Merge lp:~yrke/tapaal/github-actions into lp:tapaal

Proposed by Kenneth Yrke Jørgensen
Status: Merged
Approved by: Kenneth Yrke Jørgensen
Approved revision: 1121
Merged at revision: 1121
Proposed branch: lp:~yrke/tapaal/github-actions
Merge into: lp:tapaal
Diff against target: 55 lines (+49/-0)
1 file modified
.github/workflows/build.yml (+49/-0)
To merge this branch: bzr merge lp:~yrke/tapaal/github-actions
Reviewer Review Type Date Requested Status
TAPAAL Reviewers Pending
Review via email: mp+400093@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory '.github'
=== added directory '.github/workflows'
=== added file '.github/workflows/build.yml'
--- .github/workflows/build.yml 1970-01-01 00:00:00 +0000
+++ .github/workflows/build.yml 2021-03-24 10:07:55 +0000
@@ -0,0 +1,49 @@
1name: Java CI with Gradle
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9jobs:
10 build:
11
12 runs-on: ubuntu-latest
13
14 steps:
15 - uses: actions/checkout@v2
16 - name: Set up JDK 11
17 uses: actions/setup-java@v1
18 with:
19 java-version: 11
20
21 - name: Cache Gradle packages
22 uses: actions/cache@v2
23 with:
24 path: |
25 ~/.gradle/caches
26 ~/.gradle/wrapper
27 key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
28 restore-keys: |
29 ${{ runner.os }}-gradle-
30
31 - name: Install xvfb
32 run: |
33 sudo apt-get install -y xvfb
34
35 - name: Grant execute permission for gradlew
36 run: chmod +x gradlew
37
38 - name: Build with Gradle
39 #Run in xvfb buffer, https://jxbrowser-support.teamdev.com/docs/guides/x-server-in-headless-linux.html
40 run: xvfb-run --server-args="-screen 0 800x600x24+32" ./gradlew -Djava.awt.headless=false build
41
42 - name: Cleanup Gradle Cache
43 # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
44 # Restoring these files from a GitHub Actions cache might cause problems for future builds.
45 run: |
46 rm -f ~/.gradle/caches/modules-2/modules-2.lock
47 rm -f ~/.gradle/caches/modules-2/gc.properties
48
49

Subscribers

People subscribed via source and target branches