Skip to content

Commit

Permalink
fix: improve ci pipeline
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
* fix: working-directory in dependabot bun action
  • Loading branch information
williamsjokvist committed Oct 8, 2024
1 parent be99527 commit aaf9d41
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dependabot-bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ jobs:
name: "Update bun.lockb"
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./gui
steps:
- uses: oven-sh/setup-bun@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- run: |
bun install --cwd gui
git add gui/bun.lockb
bun install
git add bun.lockb
git config --global user.name 'dependabot[bot]'
git config --global user.email 'dependabot[bot]@users.noreply.github.com'
git commit --amend --no-edit
Expand Down
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 aaf9d41

Please sign in to comment.