Skip to content

Commit

Permalink
Merge pull request #38 from ajfAfg/demo-project-does-not-use-cache
Browse files Browse the repository at this point in the history
demo project does not use cache
  • Loading branch information
ajfAfg authored Feb 17, 2024
2 parents 7ba60c6 + 8d5a3fb commit 0bb6e14
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 12 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"
6 changes: 2 additions & 4 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-beam-with-cache/
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./demo/rebar.lock"

- name: Demonstrate with polynomial_time_without_correctness
run: |
Expand Down Expand Up @@ -58,11 +57,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-beam-with-cache/
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./demo/rebar.lock"

- name: Demonstrate with exp_time_with_correctness
run: |
Expand Down
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 0bb6e14

Please sign in to comment.