Skip to content

Commit

Permalink
Fix failing batch test
Browse files Browse the repository at this point in the history
Update actions/cache to v4
  • Loading branch information
mbklein committed Jan 29, 2025
1 parent 72c7baf commit e87da35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
otp-version: "26"
elixir-version: "1.15.4"
- name: Cache Elixir dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/deps
Expand All @@ -30,7 +30,7 @@ jobs:
${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
${{ runner.os }}-hex-v6-
- name: Cache Elixir build
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/_build
Expand All @@ -40,7 +40,7 @@ jobs:
${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
${{ runner.os }}-hex-v6-
- name: Cache JS dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/assets/node_modules
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
node-version-file: ./.tool-versions
- name: Cache Elixir dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/deps
Expand All @@ -85,7 +85,7 @@ jobs:
${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
${{ runner.os }}-hex-v6-
- name: Cache Elixir build
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/_build
Expand All @@ -95,7 +95,7 @@ jobs:
${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
${{ runner.os }}-hex-v6-
- name: Cache JS dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/assets/node_modules
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
perl Makefile.PL && \
sudo make install
- name: Cache Elixir dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/deps
Expand All @@ -201,7 +201,7 @@ jobs:
${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
${{ runner.os }}-hex-v6-
- name: Cache Elixir build
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/_build
Expand All @@ -211,7 +211,7 @@ jobs:
${{ runner.os }}-hex-v6-${{ hashFiles('app/mix.lock') }}
${{ runner.os }}-hex-v6-
- name: Cache JS dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
app/assets/node_modules
Expand Down
4 changes: 2 additions & 2 deletions app/test/meadow/batches_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ defmodule Meadow.BatchesTest do
add = %{
descriptive_metadata: %{
box_name: ["His Airness"],
date_created: [%{edtf: "1009"}, %{edtf: "100X"}, %{edtf: "~1968?"}]
date_created: [%{edtf: "1009"}, %{edtf: "100X"}, %{edtf: "1968%"}]
}
}

Expand Down Expand Up @@ -211,7 +211,7 @@ defmodule Meadow.BatchesTest do
assert work.descriptive_metadata.date_created == [
%{edtf: "1009", humanized: "1009"},
%{edtf: "100X", humanized: "1000s"},
%{edtf: "~1968", humanized: "circa 1968?"}
%{edtf: "1968%", humanized: "circa 1968?"}
]
end)
end
Expand Down

0 comments on commit e87da35

Please sign in to comment.