diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 619061f..cdc6d55 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,21 +1,12 @@ -name: linter +name: Quality on: push: branches: - - develop - main - - master - - workos pull_request: branches: - - develop - main - - master - - workos - -permissions: - contents: write jobs: quality: @@ -28,22 +19,23 @@ jobs: with: php-version: '8.4' + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + - name: Install Dependencies run: | composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - npm install + bun install - name: Run Pint run: composer lint - name: Format Frontend - run: npm run format + run: bun run format:check - name: Lint Frontend - run: npm run lint + run: bun run lint:check - # - name: Commit Changes - # uses: stefanzweifel/git-auto-commit-action@v7 - # with: - # commit_message: fix code style - # commit_options: '--no-verify' + - name: Type Check Frontend + run: bun run types diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 696e4d7..cf4e760 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,21 +1,15 @@ -name: tests +name: Tests on: push: branches: - - develop - main - - master - - workos pull_request: branches: - - develop - main - - master - - workos jobs: - ci: + test: runs-on: ubuntu-latest strategy: matrix: @@ -32,13 +26,12 @@ jobs: tools: composer:v2 coverage: xdebug - - name: Setup Node - uses: actions/setup-node@v4 + - uses: oven-sh/setup-bun@v2 with: - node-version: '22' + bun-version: latest - - name: Install Node Dependencies - run: npm i + - name: Install Bun Dependencies + run: bun install - name: Install Dependencies run: composer install --no-interaction --prefer-dist --optimize-autoloader @@ -50,7 +43,7 @@ jobs: run: php artisan key:generate - name: Build Assets - run: npm run build + run: bun run build - name: Tests run: ./vendor/bin/phpunit diff --git a/package.json b/package.json index 38307ab..aed3a34 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "format": "prettier --write resources/", "format:check": "prettier --check resources/", "lint": "eslint . --fix", + "lint:check": "eslint .", "types": "tsc --noEmit" }, "devDependencies": {