diff --git a/.github/workflows/actions-lock.json b/.github/workflows/actions-lock.json index f9699d2..0611a11 100644 --- a/.github/workflows/actions-lock.json +++ b/.github/workflows/actions-lock.json @@ -5,8 +5,8 @@ "codecov/codecov-action@v5.4.3": "18283e04ce6e62d37312384ff67231eb8fd56d24", "googleapis/release-please-action@v4.2.0": "a02a34c4d625f9be7cb89156071d8567266a2445", "jdx/mise-action@v2.4.4": "c37c93293d6b742fc901e1406b8f764f6fb19dac", - "koki-develop/github-actions-lint/actionlint@v1.4.0": "46a15ec95d25fd2fed6657d591e67d1c1cdae92b", - "koki-develop/github-actions-lint/ghalint@v1.4.0": "46a15ec95d25fd2fed6657d591e67d1c1cdae92b", - "koki-develop/github-actions-lint/zizmor@v1.4.0": "46a15ec95d25fd2fed6657d591e67d1c1cdae92b" + "koki-develop/github-actions-lint/actionlint@v1.4.1": "62dfef5c9854a07712bad7af3bee7edb0c1109b1", + "koki-develop/github-actions-lint/ghalint@v1.4.1": "62dfef5c9854a07712bad7af3bee7edb0c1109b1", + "koki-develop/github-actions-lint/zizmor@v1.4.1": "62dfef5c9854a07712bad7af3bee7edb0c1109b1" } } diff --git a/.github/workflows/actions.json b/.github/workflows/actions.json index c294f0c..da8c2b0 100644 --- a/.github/workflows/actions.json +++ b/.github/workflows/actions.json @@ -4,7 +4,7 @@ "codecov/codecov-action": "v5.4.3", "googleapis/release-please-action": "v4.2.0", "jdx/mise-action": "v2.4.4", - "koki-develop/github-actions-lint/actionlint": "v1.4.0", - "koki-develop/github-actions-lint/ghalint": "v1.4.0", - "koki-develop/github-actions-lint/zizmor": "v1.4.0" + "koki-develop/github-actions-lint/actionlint": "v1.4.1", + "koki-develop/github-actions-lint/ghalint": "v1.4.1", + "koki-develop/github-actions-lint/zizmor": "v1.4.1" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e32cda..6b3be2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ # DO NOT EDIT THIS FILE # This file is automatically generated by ghats (https://www.npmjs.com/package/ghats) # Edit the workflow in .github/workflows/ci.ts instead, and run `ghats build` to update this file. -{"name":"CI","on":{"pull_request":{"branches":["main"]},"push":{"branches":["main"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":false},"jobs":{"lint":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c94f0bf9e520b150e34c017db785461f7e71c5fb"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"bun run lint"}]},"test":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c94f0bf9e520b150e34c017db785461f7e71c5fb"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"bun test --coverage --coverage-reporter=lcov"},{"with":{"token":"${{ secrets.CODECOV_TOKEN }}","files":"coverage/lcov.info","disable_search":"true","verbose":"true"},"uses":"codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24"}]},"build-workflow":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c94f0bf9e520b150e34c017db785461f7e71c5fb"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"\ncat < ./.github/workflows/example.ts\nimport { Workflow, Job } from \"ghats\";\n\nconst workflow = new Workflow(\"Hello\", {\n on: \"push\",\n});\n\nworkflow.addJob(\n new Job(\"hello\", {\n runsOn: \"ubuntu-latest\",\n })\n .uses(\"actions/checkout@v4\")\n .run(\"echo 'Hello, world!'\"),\n);\n\nexport default workflow;\nEOF\n"},{"run":"bun run ./lib/cli/index.ts install"},{"run":"bun run ./lib/cli/index.ts build ./.github/workflows/example.ts"},{"run":"cat ./.github/workflows/example.yml"}]}}} \ No newline at end of file +{"name":"CI","on":{"pull_request":{"branches":["main"]},"push":{"branches":["main"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":false},"jobs":{"lint":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"bun run lint"}]},"test":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"bun test --coverage --coverage-reporter=lcov"},{"with":{"token":"${{ secrets.CODECOV_TOKEN }}","files":"coverage/lcov.info","disable_search":"true","verbose":"true"},"uses":"codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24"}]},"build-workflow":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"\ncat < ./.github/workflows/example.ts\nimport { Workflow, Job } from \"ghats\";\n\nconst workflow = new Workflow(\"Hello\", {\n on: \"push\",\n});\n\nworkflow.addJob(\n new Job(\"hello\", {\n runsOn: \"ubuntu-latest\",\n })\n .uses(\"actions/checkout@v4\")\n .run(\"echo 'Hello, world!'\"),\n);\n\nexport default workflow;\nEOF\n"},{"run":"bun run ./lib/cli/index.ts install"},{"run":"bun run ./lib/cli/index.ts build ./.github/workflows/example.ts"},{"run":"cat ./.github/workflows/example.yml"}]}}} \ No newline at end of file diff --git a/.github/workflows/github-actions-lint.yml b/.github/workflows/github-actions-lint.yml index 09abaf7..ebee746 100644 --- a/.github/workflows/github-actions-lint.yml +++ b/.github/workflows/github-actions-lint.yml @@ -1,4 +1,4 @@ # DO NOT EDIT THIS FILE # This file is automatically generated by ghats (https://www.npmjs.com/package/ghats) # Edit the workflow in .github/workflows/github-actions-lint.ts instead, and run `ghats build` to update this file. -{"name":"GitHub Actions Lint","on":{"pull_request":{"paths":[".github/**"]},"push":{"branches":["main"],"paths":[".github/**"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":true},"jobs":{"actionlint":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"koki-develop/github-actions-lint/actionlint@46a15ec95d25fd2fed6657d591e67d1c1cdae92b"}]},"ghalint":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"koki-develop/github-actions-lint/ghalint@46a15ec95d25fd2fed6657d591e67d1c1cdae92b"}]},"zizmor":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"with":{"github-token":"${{ github.token }}","persona":"auditor"},"uses":"koki-develop/github-actions-lint/zizmor@46a15ec95d25fd2fed6657d591e67d1c1cdae92b"}]}}} \ No newline at end of file +{"name":"GitHub Actions Lint","on":{"pull_request":{"paths":[".github/**"]},"push":{"branches":["main"],"paths":[".github/**"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":true},"jobs":{"actionlint":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"koki-develop/github-actions-lint/actionlint@62dfef5c9854a07712bad7af3bee7edb0c1109b1"}]},"ghalint":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"koki-develop/github-actions-lint/ghalint@62dfef5c9854a07712bad7af3bee7edb0c1109b1"}]},"zizmor":{"runs-on":"ubuntu-latest","permissions":{"contents":"read"},"timeout-minutes":5,"steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"with":{"github-token":"${{ github.token }}","persona":"auditor"},"uses":"koki-develop/github-actions-lint/zizmor@62dfef5c9854a07712bad7af3bee7edb0c1109b1"}]}}} \ No newline at end of file diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a840bae..835c75e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,4 +1,4 @@ # DO NOT EDIT THIS FILE # This file is automatically generated by ghats (https://www.npmjs.com/package/ghats) # Edit the workflow in .github/workflows/release-please.ts instead, and run `ghats build` to update this file. -{"name":"Release Please","on":{"push":{"branches":["main"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":false},"jobs":{"releasePlease":{"runs-on":"ubuntu-latest","permissions":{"contents":"write","pull-requests":"write"},"timeout-minutes":10,"outputs":{"shouldRelease":"${{ steps.releasePlease.outputs.release_created }}"},"steps":[{"id":"releasePlease","with":{"release-type":"node"},"uses":"googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445"}]},"release":{"runs-on":"ubuntu-latest","permissions":{"contents":"read","id-token":"write"},"timeout-minutes":10,"needs":"releasePlease","if":"${{ needs.releasePlease.outputs.shouldRelease }}","steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c94f0bf9e520b150e34c017db785461f7e71c5fb"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"echo 'registry=https://registry.npmjs.org' > .npmrc"},{"run":"npm publish"}]}}} \ No newline at end of file +{"name":"Release Please","on":{"push":{"branches":["main"]}},"permissions":{},"concurrency":{"group":"${{ github.workflow }}-${{ github.ref }}","cancel-in-progress":false},"jobs":{"releasePlease":{"runs-on":"ubuntu-latest","permissions":{"contents":"write","pull-requests":"write"},"timeout-minutes":10,"outputs":{"shouldRelease":"${{ steps.releasePlease.outputs.release_created }}"},"steps":[{"id":"releasePlease","with":{"release-type":"node"},"uses":"googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445"}]},"release":{"runs-on":"ubuntu-latest","permissions":{"contents":"read","id-token":"write"},"timeout-minutes":10,"needs":"releasePlease","if":"${{ needs.releasePlease.outputs.shouldRelease }}","steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac"},{"with":{"path":"~/.bun/install/cache","key":"${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}","restore-keys":"${{ runner.os }}-bun-"},"uses":"actions/cache@5a3ec84eff668545956fd18022155c47e93e2684"},{"run":"bun install --frozen-lockfile"},{"run":"echo 'registry=https://registry.npmjs.org' > .npmrc"},{"run":"npm publish"}]}}} \ No newline at end of file