This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
build: enable multi-scm for releases #637
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
name: ci | |
jobs: | |
clirr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 8 | |
- run: echo "JAVA8_HOME=${JAVA_HOME}" >> $GITHUB_ENV | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- run: echo "JAVA11_HOME=${JAVA_HOME}" >> $GITHUB_ENV | |
- run: .kokoro/build.sh | |
env: | |
JOB_TYPE: clirr | |
units-8: | |
name: units (8) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current week within the year | |
id: date | |
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)" | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 8 | |
distribution: temurin | |
- run: echo "JAVA8_HOME=${JAVA_HOME}" >> $GITHUB_ENV | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- run: echo "JAVA11_HOME=${JAVA_HOME}" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
id: mvn-cache | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }} | |
- run: .kokoro/build.sh | |
env: | |
JOB_TYPE: test | |
JOB_NAME: units-8 | |
units: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 11, 17 ] | |
steps: | |
- name: Get current week within the year | |
id: date | |
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)" | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{matrix.java}} | |
- run: java -version | |
- uses: actions/cache@v3 | |
id: mvn-cache | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }} | |
- run: .kokoro/build.sh | |
env: | |
JOB_TYPE: test | |
JOB_NAME: units-${{matrix.java}} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current week within the year | |
id: date | |
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)" | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- run: java -version | |
- uses: actions/cache@v3 | |
id: mvn-cache | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }} | |
- run: java -version | |
- run: mvn -B -ntp com.coveo:fmt-maven-plugin:check | |
- run: mvn -B -ntp checkstyle:check@checkstyle |