-
-
Notifications
You must be signed in to change notification settings - Fork 342
/
action.yml
29 lines (28 loc) · 1.15 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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@de22e16c4711fca50c816cc9081563429d1cf563 # v10
- uses: DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41 # v4
- name: Check Nixpkgs inputs
uses: DeterminateSystems/flake-checker-action@4b90f9fc724969ff153fe1803460917c84fe00a3 # v5
with:
fail-mode: true
- name: Use Maven dependency cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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