Skip to content

Commit

Permalink
test: agin
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaup committed May 19, 2024
1 parent fecd26a commit 3d576b4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/tsc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ jobs:
echo "Running tsc"
npx tsc --noEmit --pretty false --p tsconfig.json 2> base-tsc-errors.txt || true
- name: Extract errors from base branch
run: |
grep -oE '^[^ ]+.ts:[0-9]+:[0-9]+' base-tsc-errors.txt | sort -u > base-tsc-errors.txt || { echo 'grep command failed'; exit 1; }
- name: Checkout PR branch
run: git checkout ${{ github.head_ref }}

Expand All @@ -64,10 +60,6 @@ jobs:
run: |
npx tsc --noEmit --pretty false --p tsconfig.json > head-tsc-output.txt || true
- name: Extract errors from PR branch
run: |
grep -oE '^[^ ]+.ts:[0-9]+:[0-9]+' head-tsc-output.txt | sort -u > head-tsc-errors.txt || { echo 'grep command failed'; exit 1; }
- name: Check PR errors file existence
run: |
if [ ! -f head-tsc-errors.txt ]; then
Expand All @@ -80,8 +72,8 @@ jobs:

- name: Compare base errors with PR errors
run: |
base_errors=$(cat base-tsc-errors.txt | sort -u)
pr_errors=$(cat head-tsc-errors.txt | sort -u)
base_errors=$(grep -oE '^[^ ]+.ts:[0-9]+:[0-9]+' base-tsc-output.txt | sort -u)
pr_errors=$(grep -oE '^[^ ]+.ts:[0-9]+:[0-9]+' head-tsc-output.txt | sort -u)
echo "Base branch TypeScript errors:"
echo "$base_errors"
Expand Down

0 comments on commit 3d576b4

Please sign in to comment.