feat: Added linting and formatting actions 67938ab9
Steve Simkins · 2025-08-02 15:52 4 file(s) · +72 −0
.github/workflows/format.yml (added) +26 −0
1 +
name: Format
2 +
3 +
on:
4 +
  push:
5 +
    branches: [ main ]
6 +
  pull_request:
7 +
    branches: [ main ]
8 +
9 +
jobs:
10 +
  format:
11 +
    runs-on: ubuntu-latest
12 +
13 +
    steps:
14 +
      - name: Checkout repository
15 +
        uses: actions/checkout@v4
16 +
17 +
      - name: Setup Bun
18 +
        uses: oven-sh/setup-bun@v2
19 +
        with:
20 +
          bun-version: latest
21 +
22 +
      - name: Install dependencies
23 +
        run: bun install
24 +
25 +
      - name: Check formatting
26 +
        run: bun run format --check
.github/workflows/lint.yml (added) +26 −0
1 +
name: Lint
2 +
3 +
on:
4 +
  push:
5 +
    branches: [ main ]
6 +
  pull_request:
7 +
    branches: [ main ]
8 +
9 +
jobs:
10 +
  lint:
11 +
    runs-on: ubuntu-latest
12 +
13 +
    steps:
14 +
      - name: Checkout repository
15 +
        uses: actions/checkout@v4
16 +
17 +
      - name: Setup Bun
18 +
        uses: oven-sh/setup-bun@v2
19 +
        with:
20 +
          bun-version: latest
21 +
22 +
      - name: Install dependencies
23 +
        run: bun install
24 +
25 +
      - name: Run linter
26 +
        run: bun run lint
bun.lock +19 −0
14 14
        "yocto-spinner": "^1.0.0",
15 15
      },
16 16
      "devDependencies": {
17 +
        "@biomejs/biome": "2.1.1",
17 18
        "@types/degit": "^2.8.6",
18 19
        "@types/figlet": "^1.7.0",
19 20
        "@types/fs-extra": "^11.0.4",
26 27
    },
27 28
  },
28 29
  "packages": {
30 +
    "@biomejs/biome": ["@biomejs/biome@2.1.1", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.1.1", "@biomejs/cli-darwin-x64": "2.1.1", "@biomejs/cli-linux-arm64": "2.1.1", "@biomejs/cli-linux-arm64-musl": "2.1.1", "@biomejs/cli-linux-x64": "2.1.1", "@biomejs/cli-linux-x64-musl": "2.1.1", "@biomejs/cli-win32-arm64": "2.1.1", "@biomejs/cli-win32-x64": "2.1.1" }, "bin": { "biome": "bin/biome" } }, "sha512-HFGYkxG714KzG+8tvtXCJ1t1qXQMzgWzfvQaUjxN6UeKv+KvMEuliInnbZLJm6DXFXwqVi6446EGI0sGBLIYng=="],
31 +
32 +
    "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.1.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-2Muinu5ok4tWxq4nu5l19el48cwCY/vzvI7Vjbkf3CYIQkjxZLyj0Ad37Jv2OtlXYaLvv+Sfu1hFeXt/JwRRXQ=="],
33 +
34 +
    "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.1.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-cC8HM5lrgKQXLAK+6Iz2FrYW5A62pAAX6KAnRlEyLb+Q3+Kr6ur/sSuoIacqlp1yvmjHJqjYfZjPvHWnqxoEIA=="],
35 +
36 +
    "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.1.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-tw4BEbhAUkWPe4WBr6IX04DJo+2jz5qpPzpW/SWvqMjb9QuHY8+J0M23V8EPY/zWU4IG8Ui0XESapR1CB49Q7g=="],
37 +
38 +
    "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.1.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-/7FBLnTswu4jgV9ttI3AMIdDGqVEPIZd8I5u2D4tfCoj8rl9dnjrEQbAIDlWhUXdyWlFSz8JypH3swU9h9P+2A=="],
39 +
40 +
    "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.1.1", "", { "os": "linux", "cpu": "x64" }, "sha512-3WJ1GKjU7NzZb6RTbwLB59v9cTIlzjbiFLDB0z4376TkDqoNYilJaC37IomCr/aXwuU8QKkrYoHrgpSq5ffJ4Q=="],
41 +
42 +
    "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.1.1", "", { "os": "linux", "cpu": "x64" }, "sha512-kUu+loNI3OCD2c12cUt7M5yaaSjDnGIksZwKnueubX6c/HWUyi/0mPbTBHR49Me3F0KKjWiKM+ZOjsmC+lUt9g=="],
43 +
44 +
    "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.1.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-vEHK0v0oW+E6RUWLoxb2isI3rZo57OX9ZNyyGH701fZPj6Il0Rn1f5DMNyCmyflMwTnIQstEbs7n2BxYSqQx4Q=="],
45 +
46 +
    "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.1.1", "", { "os": "win32", "cpu": "x64" }, "sha512-i2PKdn70kY++KEF/zkQFvQfX1e8SkA8hq4BgC+yE9dZqyLzB/XStY2MvwI3qswlRgnGpgncgqe0QYKVS1blksg=="],
47 +
29 48
    "@cspotcode/source-map-support": ["@cspotcode/source-map-support@0.8.1", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.9" } }, "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw=="],
30 49
31 50
    "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
package.json +1 −0
33 33
	"author": "Steve Simkins",
34 34
	"license": "MIT",
35 35
	"devDependencies": {
36 +
		"@biomejs/biome": "2.1.1",
36 37
		"@types/degit": "^2.8.6",
37 38
		"@types/figlet": "^1.7.0",
38 39
		"@types/fs-extra": "^11.0.4",