From 9aedcfc6d94f06dce59f870abb7b04a4fa569ee7 Mon Sep 17 00:00:00 2001 From: Dhruv Thakur <13575379+dhth@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:33:36 +0200 Subject: [PATCH] ci: fix argument ordering --- .github/workflows/back-compat-pr.yml | 2 +- .github/workflows/back-compat.yml | 2 +- .github/workflows/build.yml | 1 + assets/sample-tasks.txt | 2 -- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/back-compat-pr.yml b/.github/workflows/back-compat-pr.yml index e375749..1653df3 100644 --- a/.github/workflows/back-compat-pr.yml +++ b/.github/workflows/back-compat-pr.yml @@ -46,4 +46,4 @@ jobs: run: | /var/tmp/omm_head --db-path=/var/tmp/throwaway.db 'test: a task from PR HEAD' /var/tmp/omm_head --db-path=/var/tmp/throwaway.db tasks - ./.github/scripts/checknumtasks.sh 2 "$(/var/tmp/omm_head --db-path=/var/tmp/throwaway.db tasks | wc -l | xargs)" + ./.github/scripts/checknumtasks.sh "$(/var/tmp/omm_head --db-path=/var/tmp/throwaway.db tasks | wc -l | xargs)" 2 diff --git a/.github/workflows/back-compat.yml b/.github/workflows/back-compat.yml index 1dec22c..fa0c22f 100644 --- a/.github/workflows/back-compat.yml +++ b/.github/workflows/back-compat.yml @@ -44,4 +44,4 @@ jobs: run: | /var/tmp/omm_head --db-path=/var/tmp/throwaway.db 'test: a task from main HEAD' /var/tmp/omm_head --db-path=/var/tmp/throwaway.db tasks - ./.github/scripts/checknumtasks.sh 2 "$(/var/tmp/omm_head --db-path=/var/tmp/throwaway.db tasks | wc -l | xargs)" + ./.github/scripts/checknumtasks.sh "$(/var/tmp/omm_head --db-path=/var/tmp/throwaway.db tasks | wc -l | xargs)" 2 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b1ddb2..934cbdf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,3 +38,4 @@ jobs: cat assets/sample-tasks.txt | ./omm import ./omm 'test: a task' ./omm tasks + ./.github/scripts/checknumtasks.sh "$(./omm tasks | wc -l | xargs)" 11 diff --git a/assets/sample-tasks.txt b/assets/sample-tasks.txt index f923d1a..d277953 100644 --- a/assets/sample-tasks.txt +++ b/assets/sample-tasks.txt @@ -1,4 +1,3 @@ -traps: Set up an ACME trap for the Road Runner tech: Order new ACME rocket skates traps: Draw fake tunnel on the canyon wall tech: Check ACME catalog for new gadgets @@ -7,6 +6,5 @@ tech: Assemble ACME jet-propelled pogo stick plan: Plan the next trap location orders: Buy more bird seed for the bait tech: Install spring-loaded boxing glove -design: Design a new blueprint for capturing the Road Runner order: Order a lifetime supply of ACME bird seed to lure Road Runner traps: Paint a fake bridge over a dry riverbed