Skip to content

Update workflows

Update workflows #43

Workflow file for this run

---
name: CI Build with tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [ temurin ]
java-version: [ 11, 17, 21, 24 ]
include:
- distribution: semeru
java-version: 21
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- uses: actions/setup-java@v4
name: setup build jdk
id: build_jdk
with:
java-version: 21
distribution: temurin
cache: maven
- name: build code
id: install_fast
env:
MAVEN_ARGS: "-B -ff"
run: |
./mvnw --version
make install-fast
- uses: actions/setup-java@v4
name: setup test jdk
id: test_jdk
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
- name: run tests
id: run_tests
env:
MAVEN_ARGS: "-B -ff"
run: |
./mvnw --version
make run-tests
ci-locale:
name: run_tests with different timezone and locale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- uses: actions/setup-java@v4
name: setup build jdk
id: build_jdk
with:
java-version: 21
distribution: temurin
cache: maven
- name: build code
id: install_fast
env:
MAVEN_ARGS: "-B -ff"
run: |
./mvnw --version
make install-fast
- name: run tests
id: run_tests
env:
MAVEN_ARGS: "-B -ff -Djdbi.test.timezone=Asia/Colombo -Djdbi.test.language=tr -Djdbi.test.region=TR"
run: |
./mvnw --version
make run-tests