-
Notifications
You must be signed in to change notification settings - Fork 180
46 lines (46 loc) · 1.6 KB
/
ci-netty-snapshot.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
name: Test with the latest Netty Snapshots
on:
schedule:
- cron: '0 15 * * 1-5'
workflow_dispatch:
env:
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
jobs:
build:
name: Netty ${{ matrix.netty }} Snapshot on JDK ${{ matrix.java }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
ORG_GRADLE_PROJECT_nettyVersion: ${{ matrix.netty }}
strategy:
fail-fast: false
matrix:
java: [ 8 ]
os: [ ubuntu-latest ]
netty: [ 4.1+, 4.2.0.Beta+ ]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'gradle'
- name: Print JDK Version
run: java -version
- name: Make gradlew Executable
run: chmod +x gradlew
- name: Regenerate Lock Files
run: ./gradlew resolveAndLockAll --write-locks
- name: Print Netty Version
run: ./gradlew :servicetalk-grpc-netty:dependencyInsight --configuration testRuntimeClasspath --dependency io.netty:netty-codec-http2 | head -n 50
- name: Clean Gradle project
run: ./gradlew --parallel clean
- name: Build and Test
run: sudo -E env "PATH=$PATH" bash -c "ulimit -l 65536 && ulimit -a && ./gradlew --no-daemon --parallel test"
- name: Publish Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.netty }}
path: '**/build/test-results/test/TEST-*.xml'