Skip to content

Commit 1418a15

Browse files
authored
Merge pull request #24 from MikeGarde/release-tests
Switch to faster release process by using targeted tests and removing…
2 parents 9bd05a5 + 2bbdc03 commit 1418a15

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Taskfile.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ tasks:
1717
- cargo clippy --all-targets --all-features -- -D warnings
1818
- cargo test --all-features
1919

20+
test:simple:
21+
desc: "Run simple unit tests"
22+
cmds:
23+
- cargo clippy --all-targets --all-features -- -D warnings
24+
- cargo test --test cli_basics -- --nocapture
25+
2026
test:prompts:
2127
desc: "Run prompt tests"
2228
cmds:
@@ -93,7 +99,7 @@ tasks:
9399
VERSION: '{{index .MATCH 0}}'
94100
interactive: true
95101
cmds:
96-
- task: test
102+
- task: test:simple
97103
- sh devops/release.sh {{.VERSION}}
98104
- task: publish:dry
99105
- task: publish

devops/release.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ perl -pi -e 's/^version = "[0-9]+\.[0-9]+\.[0-9]+"/version = "'"$NEW_VERSION"'"/
126126
echo "Running task setup..."
127127
task setup
128128

129-
echo "Running task test..."
130-
task test
131-
132129
echo "Running task build:release:all..."
133130
task "build:release:${NEW_VERSION}"
134131

0 commit comments

Comments
 (0)