Files
engine.io-client-java/.github/workflows/ci.yml
Damien Arrachequesne 050dd2653a ci: fix java 7 build
Maven has been upgraded from 3.8 to 3.9, which is not compatible with JDK 7.

See also: https://github.com/actions/runner-images/issues/11093
2025-02-18 23:00:22 +01:00

49 lines
1.2 KiB
YAML

name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
verify:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [7, 8, 11]
steps:
- uses: actions/checkout@v2
- name: Install Maven 3.8.x (instead of 3.9.x)
run: |
MAVEN_VERSION=3.8.8
wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
tar xzvf apache-maven-$MAVEN_VERSION-bin.tar.gz
sudo mv apache-maven-$MAVEN_VERSION /opt/maven
sudo rm -f /usr/bin/mvn # Remove existing symbolic link if it exists
sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn # Create new symbolic link
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Run the Maven verify phase
run: mvn verify -Dgpg.skip=true