-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use reusable workflow for unit tests
- Loading branch information
Showing
9 changed files
with
55 additions
and
235 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,14 @@ | ||
--- | ||
name: Release | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
- "v*.*.*" | ||
|
||
jobs: | ||
create-release: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get changelog | ||
id: changelog | ||
uses: simbo/changes-since-last-release-action@v1 | ||
- name: Create release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ github.ref }} | ||
name: ${{ github.ref_name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
# Changelog | ||
${{ steps.changelog.outputs.log }} | ||
draft: false | ||
prerelease: false | ||
github: | ||
name: GitHub | ||
uses: fabasoad/reusable-workflows/.github/workflows/wf-github-release.yml@main | ||
with: | ||
bump-tags: false |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
--- | ||
name: Sync labels | ||
name: Labels | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/labels.yml | ||
workflow_dispatch: | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
sync-labels: | ||
name: Sync labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
- name: Run Label Syncer | ||
uses: micnncim/action-label-syncer@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
maintenance: | ||
name: Maintenance | ||
uses: fabasoad/reusable-workflows/.github/workflows/wf-sync-labels.yml@main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,21 @@ | ||
--- | ||
name: Unit Tests | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
paths: | ||
- gradle/** | ||
- tasks/Makefile.java.mk | ||
- Makefile | ||
- src/** | ||
- build.gradle | ||
- ./gradlew | ||
- ./gradlew.bat | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
- main | ||
|
||
jobs: | ||
unit-tests: | ||
name: Test | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
- name: Get versions | ||
id: versions | ||
run: | | ||
java_version=$(grep -Eo 'java [a-z0-9.-]+' .tool-versions | cut -d'-' -f2) | ||
echo "java=$java_version" >> $GITHUB_OUTPUT | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ steps.versions.outputs.java }} | ||
distribution: temurin | ||
- name: Setup gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: "8.8" | ||
- name: Build | ||
env: | ||
SKIP_FINALIZE: true | ||
run: ./gradlew build | ||
- name: Unit tests | ||
run: ./gradlew test | ||
gradle: | ||
name: Gradle | ||
uses: fabasoad/reusable-workflows/.github/workflows/wf-java-unit-tests.yml@feat/java-ut |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,11 @@ | ||
--- | ||
name: Update license | ||
name: License | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
- cron: '0 5 1 1 *' | ||
- cron: "0 5 1 1 *" | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Update LICENSE file | ||
uses: FantasticFiasco/action-update-license-year@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
assignees: ${{ github.repository_owner }} | ||
labels: enhancement | ||
prTitle: Update license copyright year to {{currentYear}} | ||
prBody: | | ||
## Changelog | ||
- Update license copyright year to {{currentYear}} | ||
--- | ||
Powered by [FantasticFiasco/action-update-license-year](https://github.com/FantasticFiasco/action-update-license-year) | ||
maintenance: | ||
name: Maintenance | ||
uses: fabasoad/reusable-workflows/.github/workflows/wf-update-license.yml@main |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
gradle 8.8 | ||
java openjdk-22 | ||
coursier 2.1.9 |