-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use Nix in CI where possible (#5394)
- Loading branch information
1 parent
f6ed792
commit fd2c6ab
Showing
13 changed files
with
544 additions
and
280 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Setup test environment | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set git user | ||
shell: bash | ||
run: | | ||
git config --global user.name "GitHub Actions Bot" | ||
git config --global user.email "<>" | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@65d7c888b2778e8cf30a07a88422ccb23499bfb8 # v4 | ||
- uses: DeterminateSystems/magic-nix-cache-action@8a218f9e264e9c3803c9a1ee1c30d8e4ab55be63 # v2 | ||
- name: Check Nixpkgs inputs | ||
uses: DeterminateSystems/flake-checker-action@4b90f9fc724969ff153fe1803460917c84fe00a3 # v5 | ||
with: | ||
fail-mode: true | ||
- name: Use Maven dependency cache | ||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | ||
with: | ||
path: ~/.m2/repository | ||
# We use a unique key and restore from the base one, to ensure that | ||
# the cache is updated every time, even if a cache hit was observed. | ||
# See | ||
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache | ||
# for more information. | ||
key: ${{ runner.os }}-maven-${{ github.run_id }} | ||
restore-keys: | | ||
${{ runner.os }}-maven |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Release beta version | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' # Sundays at 00:00 (https://crontab.guru/#0_0_*_*_0) | ||
|
||
jobs: | ||
snapshot: | ||
uses: ./.github/workflows/jreleaser.yml | ||
with: | ||
release-script-to-run: chore/release-beta.sh | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Next release version' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
|
||
jobs: | ||
release: | ||
uses: ./.github/workflows/jreleaser.yml | ||
with: | ||
release-script-to-run: chore/release.sh ${{ github.event.inputs.version }} | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Release nightly version | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # Every day at 00:00 UTC (https://crontab.guru/#0_0_*_*_*) | ||
|
||
jobs: | ||
nightly: | ||
uses: ./.github/workflows/jreleaser.yml | ||
with: | ||
release-script-to-run: chore/release-nightly.sh | ||
secrets: inherit |
Oops, something went wrong.