GildedRose-Refactoring-Kata/.github/workflows/jq.yml
2023-02-07 17:12:18 +00:00

39 lines
978 B
YAML

name: jq
on:
pull_request:
branches:
- main
paths:
- jq/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install jaq
run: |
cargo install --locked --git https://github.com/01mf02/jaq
- name: Expect unit test to fail
working-directory: jq
run: |
! ./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