Skip to content

chore: update dependencies for java 17 (close #359) #363

chore: update dependencies for java 17 (close #359)

chore: update dependencies for java 17 (close #359) #363

Workflow file for this run

name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Europe/Paris"
- uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: 'araknemu'
mysql user: 'araknemu'
mysql password: 'araknemu'
mysql root password: 'root'
- name: Create MySQL user
run: |
while :
do
sleep 1
mysql -h 127.0.0.1 -u root --password=root -e 'select version()' && break
done
cat <<EOF | mysql -h 127.0.0.1 -u root --password=root
CREATE USER 'araknemu'@'%' IDENTIFIED BY 'araknemu';
GRANT ALL PRIVILEGES ON *.* TO 'araknemu'@'%';
FLUSH PRIVILEGES;
EOF
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots -P '!checkerframework' verify
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/site/jacoco/jacoco.xml
verbose: true
java_compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
java_version: [17, 21]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Europe/Paris"
- uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: 'araknemu'
mysql user: 'araknemu'
mysql password: 'araknemu'
mysql root password: 'root'
- name: Create MySQL user
run: |
while :
do
sleep 1
mysql -h 127.0.0.1 -u root --password=root -e 'select version()' && break
done
cat <<EOF | mysql -h 127.0.0.1 -u root --password=root
CREATE USER 'araknemu'@'%' IDENTIFIED BY 'araknemu';
GRANT ALL PRIVILEGES ON *.* TO 'araknemu'@'%';
FLUSH PRIVILEGES;
EOF
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java_version }}
distribution: 'adopt'
- name: Run tests
run: mvn --batch-mode -Djacoco.skip=true -P '!checkerframework' test
static_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Europe/Paris"
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt'
- name: Run tests
run: mvn clean compile