Skip to content

Commit

Permalink
test: use cache instead of artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaup committed May 19, 2024
1 parent de70d37 commit 7429982
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/tsc-output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ jobs:
- name: Run TypeScript Compiler
run: |
echo "Running tsc"
npx tsc --noEmit --pretty false --p tsconfig.json > tsc_output.txt 2> tsc_errors.log || true
echo "TSC Output:"
cat tsc_output.txt
echo "TSC Errors:"
cat tsc_errors.log
npx tsc --noEmit --pretty false --p tsconfig.json > tsc_output.txt || true
- name: Extract branch name
run: |
Expand All @@ -32,8 +27,8 @@ jobs:
echo "branch=${branch}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Upload TSC Output as Artifact
uses: actions/upload-artifact@v2
- name: Cache TSC Output
uses: actions/cache@v2
with:
name: ${{ steps.extract_branch.outputs.branch }}-tsc-output
path: tsc_output.txt
key: ${{ steps.extract_branch.outputs.branch }}-tsc-output

0 comments on commit 7429982

Please sign in to comment.