mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
ci: test texttest result
This commit is contained in:
1 parent
f982992850
commit
714d60b092
2 files changed
+131
-3
No files matched your search
@@ -15,7 +15,8 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- name: Setup Rust Toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
@@ -25,7 +26,13 @@ jobs:
|
||||
run: |
|
||||
cargo install --locked --git https://github.com/01mf02/jaq
|
||||
|
||||
- name: Run tests on jq directory
|
||||
- name: Expect unit test to fail
|
||||
working-directory: jq
|
||||
run: |
|
||||
./test-gilded-rose.sh
|
||||
! ./test-gilded-rose.sh
|
||||
|
||||
- name: Expect texttest fixture output
|
||||
working-directory: jq
|
||||
run: |
|
||||
jaq --arg days 10 -nr "$(cat gilded-rose.jq) $(cat texttest_fixture.jq)" |
|
||||
diff - texttest-10-day-result
|
||||
Reference in new issue
Block a user