Skip to content

Commit

Permalink
Update GH action cache version
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Mar 14, 2024
1 parent 8d5fd88 commit 2afff9e
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ jobs:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore _build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build
key: _build-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore test/support/plts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.22 2024/03/14

- Update to `actions/cache@v4`

## 0.2.21 2024/03/11

- Add Elixir version `1.16.2` to config
Expand Down
4 changes: 2 additions & 2 deletions docs/defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ defmodule GitHubActions.Default do
defp restore(:chocolatey) do
[
name: "Restore chocolatey",
uses: "actions/cache@v3",
uses: "actions/cache@v4",
with: [
path: ~S"C:\Users\runneradmin\AppData\Local\Temp\chocolatey",
key: "#{~e[runner.os]}-chocolatey-#{~e[github.sha]}",
Expand Down Expand Up @@ -329,7 +329,7 @@ defmodule GitHubActions.Default do
true ->
[
name: "Restore #{path}",
uses: "actions/cache@v3",
uses: "actions/cache@v4",
with: [
path: "#{path}",
key: key(path)
Expand Down
2 changes: 1 addition & 1 deletion priv/default.exs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ defmodule GitHubActions.Default do
Keyword.merge(
[
name: "Restore #{path}",
uses: "actions/cache@v3",
uses: "actions/cache@v4",
with: [
path: "#{path}",
key: key(path)
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ jobs:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore _build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build
key: _build-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore test/support/plts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/global_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ jobs:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore _build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build
key: _build-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore test/support/plts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Install rebar
run: mix local.rebar --force
- name: Restore deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore _build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build
key: _build-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/no_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ jobs:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore _build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build
key: _build-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore test/support/plts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/opt_output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ jobs:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore _build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _build
key: _build-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Restore test/support/plts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
Expand Down
6 changes: 3 additions & 3 deletions test/git_hub_actions/workflow_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ defmodule GitHubActions.WorkflowTest do
],
[
name: "Restore deps",
uses: "actions/cache@v3",
uses: "actions/cache@v4",
with: [
path: "deps",
key: """
Expand All @@ -169,7 +169,7 @@ defmodule GitHubActions.WorkflowTest do
],
[
name: "Restore _build",
uses: "actions/cache@v3",
uses: "actions/cache@v4",
with: [
path: "_build",
key: """
Expand All @@ -183,7 +183,7 @@ defmodule GitHubActions.WorkflowTest do
],
[
name: "Restore test/support/plts",
uses: "actions/cache@v3",
uses: "actions/cache@v4",
with: [
path: "test/support/plts",
key: """
Expand Down

0 comments on commit 2afff9e

Please sign in to comment.