-
-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor out common setup into its own reused workflow
- Loading branch information
1 parent
6a350b2
commit 0d97462
Showing
2 changed files
with
52 additions
and
74 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@v4 | ||
- uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- name: Check Nixpkgs inputs | ||
uses: DeterminateSystems/flake-checker-action@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