diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index b070ba5..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: [LouisBrunner] diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index bbb87da..0000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,29 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: / - schedule: - interval: weekly - groups: - actions-deps: - patterns: - - "*" - - - package-ecosystem: bun - directory: / - schedule: - interval: monthly - groups: - security-updates: - applies-to: security-updates - patterns: - - "*" - major-updates: - applies-to: version-updates - update-types: - - "major" - minor-updates: - applies-to: version-updates - update-types: - - "minor" - - "patch" diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9fcf3b3 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,47 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + actions-security: + applies-to: security-updates + patterns: + - "*" + actions-major: + applies-to: version-updates + update-types: + - "major" + patterns: + - "*" + actions-minor: + applies-to: version-updates + update-types: + - "minor" + - "patch" + patterns: + - "*" + + - package-ecosystem: "bun" + directory: "/" + schedule: + interval: "weekly" + groups: + bun-security: + applies-to: security-updates + patterns: + - "*" + bun-major: + applies-to: version-updates + update-types: + - "major" + patterns: + - "*" + bun-minor: + applies-to: version-updates + update-types: + - "minor" + - "patch" + patterns: + - "*" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 220f194..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Build & Test - -on: - pull_request: - push: - -jobs: - build: - name: Build & Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v7 - - - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.11 - - - name: Install dependencies - run: bun install - - - name: Run all checks - run: bun run all diff --git a/.github/workflows/lint-gha.yml b/.github/workflows/lint-gha.yml deleted file mode 100644 index e433d0d..0000000 --- a/.github/workflows/lint-gha.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Lint Github Actions - -on: - push: - branches: [main] - paths: - - ".github/**" - pull_request: - paths: - - ".github/**" - -jobs: - lint: - name: Lint YAML files - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v7 - - uses: ibiqlik/action-yamllint@v3 - with: - file_or_dir: .github - config_data: | - extends: default - rules: - line-length: - max: 120 - level: warning - document-start: disable - truthy: disable diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..b671abe --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,19 @@ +name: Lint + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + configs: + uses: LouisBrunner/.github/.github/workflows/lint-configs.yml@main + + test: + uses: LouisBrunner/.github/.github/workflows/lint-bun.yml@main + with: + command: bun run all diff --git a/.github/workflows/update-tags.yaml b/.github/workflows/update-tags.yaml deleted file mode 100644 index c90d1fe..0000000 --- a/.github/workflows/update-tags.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: "Update aggregate tags" -on: - push: - tags: - - "v*.*" - -jobs: - retag: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - name: Calculate short tag name - id: calculate_short_tag - run: | - TRUNC_VER=$(echo ${{ github.ref_name }} | cut -d '.' -f 1) - echo "Short tag: $TRUNC_VER" - echo "tag=$TRUNC_VER" >> $GITHUB_OUTPUT - - uses: rickstaa/action-create-tag@v1 - with: - force_push_tag: true - tag: "${{ steps.calculate_short_tag.outputs.tag }}" - message: "Points to ${{ github.ref_name }}" diff --git a/.github/workflows/update-tags.yml b/.github/workflows/update-tags.yml new file mode 100644 index 0000000..cb89c53 --- /dev/null +++ b/.github/workflows/update-tags.yml @@ -0,0 +1,10 @@ +name: Update aggregate tags + +on: + push: + tags: + - "v*.*" + +jobs: + retag: + uses: LouisBrunner/.github/.github/workflows/update-tags.yml@main diff --git a/biome.json b/biome.json index cd5e6a5..0d23a88 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json", + "$schema": "https://biomejs.dev/schemas/2.5.0/schema.json", "assist": { "actions": { "source": { @@ -23,7 +23,7 @@ "linter": { "enabled": true, "rules": { - "recommended": true + "preset": "recommended" } }, "vcs": { diff --git a/package.json b/package.json index 57f6d9a..a15c693 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "pack": "bun build src/main.ts --outfile dist/index.js --target node --production", "test": "bun test", "typecheck": "tsc --noEmit", - "vet": "bun run typecheck && bunx @biomejs/biome check" + "vet": "bun run typecheck && bunx @biomejs/biome check", + "vet:ci": "bun run typecheck && bunx @biomejs/biome ci" }, "type": "module", "version": "1.0.0"