Skip to content

Commit

Permalink
fix: improve ts-lint workflow
Browse files Browse the repository at this point in the history
* fix: working directory in ts workflow
* fix: tsc cmd
* fix: update ts-lint action versions
  • Loading branch information
williamsjokvist committed Oct 8, 2024
1 parent be99527 commit 21b87a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ts-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ on:
jobs:
ts-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./gui
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/gui/node_modules
key: ${{ runner.os }}-${{ hashFiles('./gui/bun.lockb') }}
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('bun.lockb') }}
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: bun install
if: steps.cache-deps.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "vite build --config .config/vite.config.js",
"format": "prettier src --config .config/prettier.config.js --write",
"format:check": "prettier --config .config/prettier.config.js src --check",
"tsc": "tsc --project .config/tsconfig.json --noEmit",
"tsc": "tsc --project . --noEmit",
"dev": "vite --config .config/vite.config.js"
},
"dependencies": {
Expand Down

0 comments on commit 21b87a4

Please sign in to comment.