40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
json-file:
|
|
- "action.json"
|
|
- "actions.json"
|
|
- "k8s.json"
|
|
- "helm.json"
|
|
- "common.json"
|
|
- "docker-compose.json"
|
|
- "bun-npm.json"
|
|
- "npm.json"
|
|
- "golang.json"
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: Validate "${{ matrix.json-file }}"
|
|
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@30070f7f9c7376fd87998980078688f61cecda59 # 0.1.13
|
|
with:
|
|
json-file: "./${{ matrix.json-file }}"
|
|
|
|
format:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
with:
|
|
bun-version-file: ".bun-version"
|
|
- run: bun install --frozen-lockfile
|
|
- name: Check formatting
|
|
run: bun run fmt:check
|