Skip to content

Commit

Permalink
Merge branch 'master' into topic/oliolopp/editor/single-click-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Nov 7, 2024
2 parents 4863f25 + 12fd6a6 commit d7c8d26
Show file tree
Hide file tree
Showing 147 changed files with 4,359 additions and 1,371 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests, Quality checks, and Acceptance Tests
name: Acceptance Tests

on:
push:
Expand All @@ -18,13 +18,11 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
- uses: gradle/wrapper-validation-action@v3
name: validate gradle wrapper
- uses: gradle/actions/setup-gradle@v3
- uses: gradle/actions/setup-gradle@v4
name: Setup Gradle
id: setup-gradle
- name: Run gradle build
run: xvfb-run -a --server-args='-screen 0, 1024x768x24' ./gradlew -PenvIsCi --scan build
- name: Run acceptance test
run: ./gradlew -PenvIsCi=true -PtestDisplay=99 --scan testAcceptance
id: gradle
- name: "Add Build Scan URL as PR comment"
uses: actions/github-script@v7
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/checkstyle-annotate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
java-version: '11'
- name: create annotation
run: echo "::add-matcher::${{ github.workspace }}/ci/github/problem-matcher.json"
- name: setup gradle
uses: gradle/actions/setup-gradle@v4
- name: run checkstyle
uses: gradle/actions/setup-gradle@v3
with:
arguments: -PenvIsCi checkstyleMain checkstyleTest
run: ./gradlew -PenvIsCi checkstyleMain checkstyleTest
39 changes: 39 additions & 0 deletions .github/workflows/gradle-check-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Quality checks

on:
push:
branches:
- master
- releases/*
pull_request:

jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v4
name: Setup Gradle
id: setup-gradle
- name: Run gradle build
run: ./gradlew -PenvIsCi=true -Pheadless=true --scan check
id: gradle
- name: "Add Build Scan URL as PR comment"
uses: actions/github-script@v7
if: github.event_name == 'pull_request' && failure()
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `❌ ${{ github.workflow }} **failed**.
Please look a Gradle Scan page for details:
${{ steps.gradle.outputs.build-scan-url }}`
})
12 changes: 12 additions & 0 deletions .github/workflows/gradle-wrapper-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Validate gradle wrapper

on:
pull_request:

jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
name: validate gradle wrapper
24 changes: 24 additions & 0 deletions .github/workflows/greetings-builds-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Chec greetings build

on:
push:
branches:
- master
- releases/*
pull_request:

jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v4
name: Setup Gradle
id: setup-gradle
- name: Run gradle firstSteps
run: ./gradlew -PenvIsCi=true firstSteps
id: gradle
24 changes: 24 additions & 0 deletions .github/workflows/manuals-builds-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check manuals build

on:
push:
branches:
- master
- releases/*
pull_request:

jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v4
name: Setup Gradle
id: setup-gradle
- name: Run gradle manualsHtmls
run: ./gradlew -PenvIsCi=true manualHtmls
id: gradle
6 changes: 3 additions & 3 deletions .github/workflows/spotbugs-annotate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
java-version: '11'
- name: create annotation
run: echo "::add-matcher::${{ github.workspace }}/ci/github/problem-matcher.json"
- name: setup gradle
uses: gradle/actions/setup-gradle@v4
- name: run spotbugs
uses: gradle/actions/setup-gradle@v3
with:
arguments: --continue -PenvIsCi spotbugsMain spotbugsTest
run: ./gradlew --continue -PenvIsCi spotbugsMain spotbugsTest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ bin
local.properties

.idea
.fleet
.run
out

Expand Down
15 changes: 10 additions & 5 deletions aligner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ plugins {

dependencies {
compileOnly(project.rootProject)
if (providedLibsDir.directory) {
compileOnly fileTree(dir: providedLibsDir, includes: ['**/commons-*.jar', '**/lib-mnemonics*.jar',
'**/maligna-*.jar', '**/supertmxmerge-*.jar',
'**/slf4j*'])
if (providedModuleLibsDir.directory) {
compileOnly fileTree(dir: providedCoreLibsDir, includes: ['**/commons-*.jar', '**/lib-mnemonics*.jar',
'**/slf4j*.jar', '**/supertmxmerge-*.jar', '**/jaxb-api*.jar'])
compileOnly fileTree(dir: providedModuleLibsDir, includes: ['**/maligna-*.jar'])
} else {
// Aligner
implementation(libs.loomchild.maligna)
implementation(libs.loomchild.maligna) {
exclude module: 'jaxb-api'
exclude module: 'jaxb-core'
exclude module: 'jaxb-runtime'
}
compileOnly(libs.jaxb.api)
compileOnly(libs.madlonkay.supertmxmerge)
compileOnly(libs.omegat.mnemonics)
compileOnly(libs.commons.io)
Expand Down
24 changes: 22 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,20 @@ stages:
- checkout: self
fetchDepth: 1
fetchTags: false
- template: ci/azure-pipelines/build_steps.yml
- script: echo "##vso[task.setvariable variable=result;]false"
condition: failed()
- script: |
version=$(./gradlew -qq printVersion | head -n -1 )
echo "##vso[task.setvariable variable=version]$version"
- template: ci/azure-pipelines/build_steps.yml
# stop the Gradle daemon to ensure no files are left open (impacting the save cache operation later)
./gradlew --stop
# Check task result
if [[ "$(result)" == "false" ]]; then
exit 1
fi
condition: always()
displayName: Stop Gradle daemon
- template: ci/azure-pipelines/publish_weekly.yml
parameters:
omegatVersion: $(version)
Expand All @@ -168,10 +178,20 @@ stages:
- checkout: self
fetchDepth: 0
fetchTags: true
- template: ci/azure-pipelines/build_steps.yml
- script: echo "##vso[task.setvariable variable=result;]false"
condition: failed()
- script: |
version=$(./gradlew -qq printVersion | head -n -1 )
echo "##vso[task.setvariable variable=version]$version"
- template: ci/azure-pipelines/build_steps.yml
# stop the Gradle daemon to ensure no files are left open (impacting the save cache operation later)
./gradlew --stop
# Check task result
if [[ "$(result)" == "false" ]]; then
exit 1
fi
condition: always()
displayName: Stop Gradle daemon
- template: ci/azure-pipelines/publish_release.yml
parameters:
omegatVersion: $(version)
Expand Down
Loading

0 comments on commit d7c8d26

Please sign in to comment.