Skip to content

Commit

Permalink
update config for biome and ts config, also implement a CI workflow t…
Browse files Browse the repository at this point in the history
…hat will also run future tests
  • Loading branch information
Adammatthiesen committed Oct 9, 2024
1 parent ab8c723 commit 06ddff6
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI / Tests

# Tests coming soon

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

permissions:
contents: write
pull-requests: write
id-token: write

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup PNPM
uses: pnpm/action-setup@v3

- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version-file: '.node-version'
cache: pnpm

- name: Install dependencies
run: pnpm ci:install
shell: bash

- name: Lint code
run: pnpm ci:lint
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/todo-auto-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
importAll:
default: 'false'
default: false
required: false
type: boolean
description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build": "pnpm --filter node-playground build",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"ci:lint": "biome ci --formatter-enabled=true --organize-imports-enabled=true --linter-enabled=true --reporter=github",
"ci:install": "pnpm install --frozen-lockfile",
"ci:version": "pnpm changeset version",
"ci:publish": "pnpm changeset publish",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"packages/studiocms_ui/**/*"
],
"compilerOptions": {
"baseUrl": ".",
"composite": true,
"declaration": true,
"declarationMap": true,
Expand Down

0 comments on commit 06ddff6

Please sign in to comment.