Skip to content

Commit

Permalink
Fix file path used for cache key calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfAfg committed Feb 17, 2024
1 parent f4967c8 commit 8d5a3fb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions .github/actions/setup-beam-with-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ inputs:
rebar3-version:
description: Rebar3 version (string)
required: true
rebar-lock-path:
description: Path of `rebar.lock` (string)
required: true
overwrite:
description: Whether to overwrite the cache (bool string)
required: false
Expand All @@ -28,7 +25,7 @@ runs:
id: cache-no-overwrite
if: ${{ inputs.overwrite != 'true' }}
with:
key: ${{ runner.os }}-otp-${{ inputs.otp-version }}-rebar3-${{ inputs.rebar3-version }}-${{ hashFiles(inputs.rebar-lock-path) }}
key: ${{ runner.os }}-otp-${{ inputs.otp-version }}-rebar3-${{ inputs.rebar3-version }}-${{ hashFiles('rebar.lock') }}
path: |
~/.cache/rebar3
_build
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"

- run: rebar3 xref
- run: rebar3 dialyzer
Expand All @@ -55,7 +54,6 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"

- name: Run sample-based-tests
run: rebar3 do eunit, ct
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/create-cache-periodically.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"
overwrite: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"

- name: Run property-based tests
run: rebar3 proper -n 1000

0 comments on commit 8d5a3fb

Please sign in to comment.