Skip to content

chore: lint workflow #2024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:22
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pnpm setup
uses: pnpm/action-setup@v4
- name: pnpm Cache
uses: buildjet/cache@v4
with:
path: |
~/.pnpm-store
node_modules
*/*/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install packages
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Run Lint
run: pnpm lint
env:
SKIP_ENV_VALIDATION: true
39 changes: 0 additions & 39 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,45 +48,6 @@ jobs:
- name: Run Build
run: pnpm build

lint:
runs-on: buildjet-4vcpu-ubuntu-2204
needs: [build]
container:
image: node:22
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Restore dependencies
uses: buildjet/cache@v4
with:
path: |
~/.pnpm-store
node_modules
*/*/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: turborepo Cache
uses: buildjet/cache@v4
with:
path: |
.turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Run Build
run: pnpm build

- name: Run Lint
run: pnpm lint

test:
runs-on: buildjet-4vcpu-ubuntu-2204
needs: [build]
Expand Down
Loading