Skip to content

Commit

Permalink
lessen CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
itsMapleLeaf committed Mar 5, 2024
1 parent 6986666 commit 6a9a684
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ runs:
using: composite
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Checks

on:
push:
branches: [main]
pull_request:
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node

# astro db projects can't be built in CI at the moment,
# which means we can't typecheck either
# - name: Build
# - run: pnpm run build
# - name: Typecheck
# - run: pnpm run typecheck

- name: Lint
run: pnpm run lint
20 changes: 0 additions & 20 deletions .github/workflows/tests.yml

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"private": true,
"type": "module",
"scripts": {
"lint": "run-s --continue-on-error lint:*",
"lint:astro-sync": "pnpm -r exec astro check",
"lint:tsc": "pnpm -r exec tsc -b",
"lint:biome": "biome lint .",
"build": "pnpm -r run build",
"lint": "biome lint .",
"typecheck": "pnpm -r exec astro check",
"format": "run-s --continue-on-error format:*",
"format:biome": "biome check . --apply",
"format:prettier": "prettier . --write --cache --list-different"
Expand Down

0 comments on commit 6a9a684

Please sign in to comment.