Skip to content

Commit

Permalink
Add text resource type integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Oct 17, 2023
1 parent 10049c4 commit 621055d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test-integration/fixtures/confs/rtk-text.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"resources": [
{
"path": "../../../../../test-integration/fixtures/data/data.txt",
"type": "text",
"params": {
"regex": "(\\d+)\\.(\\d+)\\.(\\d+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?",
"release_format": "version-{version}"
}
}
]
}
1 change: 1 addition & 0 deletions test-integration/fixtures/data/data.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The version number is 1.2.3 .

0 comments on commit 621055d

Please sign in to comment.