diff --git a/.github/workflows/actions-lock.json b/.github/workflows/actions-lock.json index c2f334a..d9a9a55 100644 --- a/.github/workflows/actions-lock.json +++ b/.github/workflows/actions-lock.json @@ -4,7 +4,7 @@ "actions/checkout@v4.2.2": "11bd71901bbe5b1630ceea73d27597364c9af683", "codecov/codecov-action@v5.4.2": "ad3126e916f78f00edff4ed0317cf185271ccc2d", "googleapis/release-please-action@v4.2.0": "a02a34c4d625f9be7cb89156071d8567266a2445", - "jdx/mise-action@v2.1.11": "5083fe46898c414b2475087cc79da59e7da859e8", + "jdx/mise-action@v2.2.1": "7a111ead46986ccad89a74ad013ba2a7c08c9e67", "koki-develop/github-actions-lint/actionlint@v1.1.0": "cd40a2834e54895146e4a73ae17dcc37944ffb0f", "koki-develop/github-actions-lint/ghalint@v1.1.0": "cd40a2834e54895146e4a73ae17dcc37944ffb0f", "koki-develop/github-actions-lint/zizmor@v1.1.0": "cd40a2834e54895146e4a73ae17dcc37944ffb0f" diff --git a/.github/workflows/actions.json b/.github/workflows/actions.json index e51f6d1..e6548d1 100644 --- a/.github/workflows/actions.json +++ b/.github/workflows/actions.json @@ -3,7 +3,7 @@ "actions/checkout": "v4.2.2", "codecov/codecov-action": "v5.4.2", "googleapis/release-please-action": "v4.2.0", - "jdx/mise-action": "v2.1.11", + "jdx/mise-action": "v2.2.1", "koki-develop/github-actions-lint/actionlint": "v1.1.0", "koki-develop/github-actions-lint/ghalint": "v1.1.0", "koki-develop/github-actions-lint/zizmor": "v1.1.0" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0571783..9f1a81d 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@5083fe46898c414b2475087cc79da59e7da859e8"},{"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@5083fe46898c414b2475087cc79da59e7da859e8"},{"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@ad3126e916f78f00edff4ed0317cf185271ccc2d"}]},"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@5083fe46898c414b2475087cc79da59e7da859e8"},{"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@7a111ead46986ccad89a74ad013ba2a7c08c9e67"},{"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@7a111ead46986ccad89a74ad013ba2a7c08c9e67"},{"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@ad3126e916f78f00edff4ed0317cf185271ccc2d"}]},"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@7a111ead46986ccad89a74ad013ba2a7c08c9e67"},{"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/release-please.yml b/.github/workflows/release-please.yml index 8c41630..efc590b 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"},"timeout-minutes":10,"needs":"releasePlease","if":"${{ needs.releasePlease.outputs.shouldRelease }}","steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8"},{"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 build:package"},{"run":"\n(\n # shellcheck disable=SC2016\n echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}'\n echo 'registry=https://registry.npmjs.org'\n) > .npmrc\n"},{"env":{"NODE_AUTH_TOKEN":"${{ secrets.NPM_TOKEN }}"},"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"},"timeout-minutes":10,"needs":"releasePlease","if":"${{ needs.releasePlease.outputs.shouldRelease }}","steps":[{"with":{"persist-credentials":"false"},"uses":"actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"},{"uses":"jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67"},{"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 build:package"},{"run":"\n(\n # shellcheck disable=SC2016\n echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}'\n echo 'registry=https://registry.npmjs.org'\n) > .npmrc\n"},{"env":{"NODE_AUTH_TOKEN":"${{ secrets.NPM_TOKEN }}"},"run":"npm publish"}]}}} \ No newline at end of file