Skip to content

Commit

Permalink
ci: Add test pattern
Browse files Browse the repository at this point in the history
- It attests that age can update lines excepted for `current_version` on `.age.toml` itself
  • Loading branch information
attakei committed Mar 28, 2024
1 parent 97491d3 commit 4e99b27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/return-0/multi-part-of-config/after/.age.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
current_version = "0.2.0"

# Updates by 0.2.0
[[files]]
path = ".age.toml"
search = "# Updates by {{ current_version }}"
replace = "# Updates by {{ new_version }}"
7 changes: 7 additions & 0 deletions tests/return-0/multi-part-of-config/before/.age.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
current_version = "0.1.0"

# Updates by 0.1.0
[[files]]
path = ".age.toml"
search = "# Updates by {{ current_version }}"
replace = "# Updates by {{ new_version }}"

0 comments on commit 4e99b27

Please sign in to comment.