{"id":15817101,"url":"https://github.com/peaceiris/workflows","last_synced_at":"2026-05-10T18:20:38.101Z","repository":{"id":43407785,"uuid":"299030126","full_name":"peaceiris/workflows","owner":"peaceiris","description":"GitHub Actions Composite/Reusable Workflows","archived":false,"fork":false,"pushed_at":"2024-04-10T20:17:58.000Z","size":1233,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T06:14:27.640Z","etag":null,"topics":["actions","github-actions"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peaceiris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-27T12:44:32.000Z","updated_at":"2024-05-12T15:40:20.922Z","dependencies_parsed_at":"2023-12-10T13:24:49.558Z","dependency_job_id":"48d07d19-8570-4f71-a082-7bf3df7101eb","html_url":"https://github.com/peaceiris/workflows","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fworkflows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fworkflows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fworkflows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Fworkflows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peaceiris","download_url":"https://codeload.github.com/peaceiris/workflows/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222693065,"owners_count":17024035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions"],"created_at":"2024-10-05T05:22:09.906Z","updated_at":"2026-05-10T18:20:38.085Z","avatar_url":"https://github.com/peaceiris.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Composite Run Steps GitHub Actions\n\nA collection of composite run steps GitHub Actions.\n\n\u003e [Creating a composite action - GitHub Docs](https://docs.github.com/en/actions/creating-actions/creating-a-composite-action)\n\n\n\n## Setup Docker Project\n\nThis composite action includes the following actions:\n\n- Install docker compose v2\n- Install docker buildx\n\nDefinition: [setup-docker/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-docker/action.yml)\n\n### Install the Latest Version\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n      - uses: peaceiris/workflows/setup-docker@v0.21.2\n      - run: docker compose version\n      - run: docker buildx version\n```\n\n### Install a Specific Version\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n      - uses: peaceiris/workflows/setup-docker@v0.21.2\n        with:\n          compose-version: '2.4.1'\n          buildx-version: '0.8.2'\n      - run: docker compose version\n      - run: docker buildx version\n```\n\n\n\n## Setup Go Project\n\nThis composite action includes the following actions:\n\n- `actions/setup-go`\n- `peaceiris/workflows/setup-mage`\n- `peaceiris/workflows/setup-goreleaser`\n- `actions/cache`\n\nDefinition: [setup-go/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-go/action.yml)\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: peaceiris/workflows/setup-go@v0.21.2\n        with:\n          go-version: '1.18'\n\n      - run: go version\n      - run: mage -h\n      - run: goreleaser -h\n```\n\n\n\n## Setup Node.js Project\n\nThis composite action includes the following actions:\n\n- `actions/setup-node`\n- `actions/cache`\n\nDefinition: [setup-node/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-node/action.yml)\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: peaceiris/workflows/setup-node@v0.21.2\n        with:\n          node-version: '16.14.2'\n          # node-version-file: '.nvmrc'\n\n      - run: node -v\n      - run: npm -v\n```\n\n\n\n## Setup Python Project\n\nThis composite action includes the following actions:\n\n- `actions/setup-python`\n- `actions/cache`\n\nDefinition: [setup-python/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-python/action.yml)\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: peaceiris/workflows/setup-python@v0.21.2\n        with:\n          python-version: '3.10'\n\n      - run: python3 -V\n      - run: python3 -m pip -V\n      - run: python3 -m pipenv --version\n```\n\n\n\n## Setup Rust Project\n\nThis composite action includes the following actions:\n\n- `actions/cache`\n\nDefinition: [setup-rust/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-rust/action.yml)\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: peaceiris/workflows/setup-rust@v0.21.2\n```\n\n\n\n## Setup [goreleaser/goreleaser]\n\nInstall `goreleaser` to a GitHub Actions Ubuntu virtual environment.\n\nDefinition: [setup-goreleaser/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-goreleaser/action.yml)\n\n[goreleaser/goreleaser]: https://github.com/goreleaser/goreleaser/\n\n### Install the Latest Version\n\nHere is an example GitHub Actions workflow to install the latest `goreleaser` and run it.\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: peaceiris/workflows/setup-goreleaser@v0.21.2\n\n      - run: goreleaser -h\n      - run: goreleaser check\n```\n\n### Install a Specific Version\n\n```yaml\n- uses: peaceiris/workflows/setup-goreleaser@v0.21.2\n  with:\n    goreleaser-version: '1.8.1'\n```\n\n\n\n## Setup [ko-build/ko]\n\nInstall `ko` to a GitHub Actions Ubuntu or macOS virtual environment.\n\nDefinition: [setup-ko/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-ko/action.yml)\n\n[ko-build/ko]: https://github.com/ko-build/ko\n\n### Install the Latest Version\n\nHere is an example GitHub Actions workflow to install the latest `ko` and run it.\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: peaceiris/workflows/setup-ko@v0.21.2\n\n      - run: ko version\n```\n\n### Install a Specific Version\n\n```yaml\n- uses: peaceiris/workflows/setup-ko@v0.21.2\n  with:\n    ko-version: '0.17.1'\n```\n\n\n\n## Setup [magefile/mage]\n\nInstall `mage` to a GitHub Actions Ubuntu virtual environment.\n\nDefinition: [setup-mage/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-mage/action.yml)\n\n[magefile/mage]: https://github.com/magefile/mage\n\n### Install the Latest Version\n\nHere is an example GitHub Actions workflow to install the latest `mage` and run it.\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  test:\n    runs-on: ubuntu-24.04\n    steps:\n      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n      - uses: peaceiris/workflows/setup-mage@v0.21.2\n\n      - run: mage -h\n      - run: mage fmt\n```\n\n### Install a Specific Version\n\n```yaml\n- uses: peaceiris/workflows/setup-mage@v0.21.2\n  with:\n    mage-version: '1.10.0'\n```\n\n\n\n## Reusable hadolint workflow\n\n```yaml\njobs:\n  hadolint:\n    uses: peaceiris/workflows/.github/workflows/hadolint.yml@v0.21.2\n```\n\n\n\n## Reusable actionlint workflow\n\n```yaml\njobs:\n  actionlint:\n    uses: peaceiris/workflows/.github/workflows/actionlint.yml@v0.21.2\n```\n\n\n\n## Reusable pull-request merger workflow\n\n```yaml\nname: pull-request\n\non:\n  issue_comment:\n    types: [created, edited]\n\njobs:\n  merger:\n    uses: peaceiris/workflows/.github/workflows/merger.yml@v0.21.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeaceiris%2Fworkflows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeaceiris%2Fworkflows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeaceiris%2Fworkflows/lists"}