Skip to content
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

update config for biome and tsconfig, also implement a CI workflow that will also run future tests #355

Merged
merged 3 commits into from
Oct 10, 2024
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
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 --reporter=github",
"ci:install": "pnpm install --frozen-lockfile",
"ci:version": "pnpm changeset version",
"ci:publish": "pnpm changeset publish",
Expand Down
Loading
Loading