Skip to content

Commit

Permalink
feat: implement basic function (#1)
Browse files Browse the repository at this point in the history
* feat: implement basic function

* docs: update FOOTER.md

* ci: fix secret names

* chore(aqua): update aqua/aqua-checksums.json

---------

Co-authored-by: aquaproj-aqua[bot] <127701725+aquaproj-aqua[bot]@users.noreply.github.com>
  • Loading branch information
suzuki-shunsuke and aquaproj-aqua[bot] authored Jul 15, 2023
1 parent a282ddf commit 03df2f6
Show file tree
Hide file tree
Showing 20 changed files with 626 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
github:
- aquaproj
18 changes: 18 additions & 0 deletions .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Separate the workflow for actionlint to other workflows, because if a workflow for actionlint is broken actionlint isn't run
name: actionlint
on:
pull_request:
paths:
- .github/workflows/*.yaml
- aqua/imports/actionlint.yaml
- aqua/imports/reviewdog.yaml
jobs:
actionlint:
uses: suzuki-shunsuke/actionlint-workflow/.github/workflows/actionlint.yaml@b6a5f966d4504893b2aeb60cf2b0de8946e48504 # v0.5.0
with:
aqua_version: v2.9.0
aqua_policy_allow: true
permissions:
pull-requests: write
contents: read
19 changes: 19 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: test

on: pull_request

permissions: {}

jobs:
test:
uses: suzuki-shunsuke/go-test-full-workflow/.github/workflows/test.yaml@363126b27a86b64fc8e7fe88dbc90e254060cce2 # v0.2.2
with:
aqua_version: v2.9.0
go-version: 1.20.5
secrets:
gh_app_id: ${{secrets.APP_ID_AQUAPROJ_AQUA}}
gh_app_private_key: ${{secrets.APP_PRIVATE_KEY_AQUAPROJ_AQUA}}
permissions:
pull-requests: write
contents: read # To checkout private repository
24 changes: 24 additions & 0 deletions .github/workflows/update-readme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update aqua users list of README
on:
workflow_dispatch: {}
schedule:
- cron: "0 0 * * *"

jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: write # Push a commit to the main branch
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: 1.20.6
- run: go run ./cmd/list-aqua-users | tee result.md
env:
GITHUB_TOKEN: ${{github.token}}
- run: cat docs/HEADER.md result.md docs/FOOTER.md > README.md
- run: |
ghcp commit -r "$GITHUB_REPOSITORY" -m "docs: update README.md" README.md
env:
GITHUB_TOKEN: ${{github.token}}
28 changes: 28 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
linters:
enable-all: true
disable:
- maligned # WARN [runner] The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. Replaced by govet 'fieldalignment'.
- interfacer # WARN [runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner.
- scopelint # WARN [runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref.
- nosnakecase # WARN [runner] The linter 'nosnakecase' is deprecated (since v1.48.1) due to: The repository of the linter has been deprecated by the owner. Replaced by revive(var-naming).
- deadcode # WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
- structcheck # WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
- ifshort # WARN [runner] The linter 'ifshort' is deprecated (since v1.48.0) due to: The repository of the linter has been deprecated by the owner.
- varcheck # WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
- wsl
- goerr113
- lll
- godot
- nlreturn
- godox
- golint
- tagliatelle
- exhaustivestruct # https://github.com/mbilski/exhaustivestruct
- ireturn
- varnamelen
- exhaustive
- exhaustruct
- nonamedreturns
- musttag
- forbidigo
174 changes: 174 additions & 0 deletions aqua/aqua-checksums.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"checksums": [
{
"id": "github_release/github.com/golangci/golangci-lint/v1.51.2/golangci-lint-1.51.2-darwin-amd64.tar.gz",
"checksum": "0549CBAA2DF451CF3A2011A9D73A9CB127784D26749D9CD14C9F4818AF104D44",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.51.2/golangci-lint-1.51.2-darwin-arm64.tar.gz",
"checksum": "36E69882205A0E42A63AD57EC3015639C11051E03F0BEB9CF7949C6451408960",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.51.2/golangci-lint-1.51.2-linux-amd64.tar.gz",
"checksum": "4DE479EB9D9BC29DA51AEC1834E7C255B333723D38DBD56781C68E5DDDC6A90B",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.51.2/golangci-lint-1.51.2-linux-arm64.tar.gz",
"checksum": "9E03C47B7628D49F950445D74881A0E3CB3A1E6B3C5AC3B67672D600124C1B08",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.51.2/golangci-lint-1.51.2-windows-amd64.zip",
"checksum": "AAC163D9BF3F79457399C2852CFAE550CD250F23DF9B324966F9C54E767FF42D",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.51.2/golangci-lint-1.51.2-windows-arm64.zip",
"checksum": "DA25A1202B10FCFAA5FBA02FF1D41A2D81562BEC52231F3239FFD8AF7CD3E143",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/int128/ghcp/v1.13.2/ghcp_darwin_amd64.zip",
"checksum": "8221f411ac4f2465b7cfd31efb6da4568e5fd20bad9f66ac312b23afa4520fdd",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/int128/ghcp/v1.13.2/ghcp_linux_amd64.zip",
"checksum": "6b9d9c9a7b834237b6579353477df3bb3730c11788170ad2a9e5d1230abc6216",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/int128/ghcp/v1.13.2/ghcp_windows_amd64.zip",
"checksum": "2297d27978c61272184589c3c521514291e6258c3c87ebcb16fb61b32663414e",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/reviewdog/reviewdog/v0.14.2/reviewdog_0.14.2_Darwin_arm64.tar.gz",
"checksum": "9157E380FB9925A52A10963145E70F3ADEBF976EB7B358A825899C8E93C33C10",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/reviewdog/reviewdog/v0.14.2/reviewdog_0.14.2_Darwin_x86_64.tar.gz",
"checksum": "2C7C826A8C07E192DCEFA07900ED220C7DE0DE3976979C6A13F1B48610FCB7AD",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/reviewdog/reviewdog/v0.14.2/reviewdog_0.14.2_Linux_arm64.tar.gz",
"checksum": "A8240E7EAC455CA85C516B614889F7358B3411B6479A9955A52000611A034617",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/reviewdog/reviewdog/v0.14.2/reviewdog_0.14.2_Linux_x86_64.tar.gz",
"checksum": "63D7720AC3329A9375D9126286C8E2FD3A37B1F75D8FF21094D996B4AB3A011C",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/reviewdog/reviewdog/v0.14.2/reviewdog_0.14.2_Windows_arm64.tar.gz",
"checksum": "8BE0AF6C22CF54B0ED0A97657460EAE986B438208B09BAB6BAB8AE9EB27122AD",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/reviewdog/reviewdog/v0.14.2/reviewdog_0.14.2_Windows_x86_64.tar.gz",
"checksum": "306CF9054ED4F2D52CC08F7660BFB51FD44AF4B713BD0C6403C1CE273E4DD734",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/rhysd/actionlint/v1.6.25/actionlint_1.6.25_darwin_amd64.tar.gz",
"checksum": "30D69622FF9FBF564081515BF7D20538F2CB590150EF0C69FDCC56FA23FE85F1",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/rhysd/actionlint/v1.6.25/actionlint_1.6.25_darwin_arm64.tar.gz",
"checksum": "9153EBE7BE2A33C9047E60AEB0D8D7B831B22FE99BBEA63D365500C68245D6DF",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/rhysd/actionlint/v1.6.25/actionlint_1.6.25_linux_amd64.tar.gz",
"checksum": "80A54660E73AD55A0818372BDAA0DCED82EB86F618E6BF1621E73F099E61C027",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/rhysd/actionlint/v1.6.25/actionlint_1.6.25_linux_arm64.tar.gz",
"checksum": "8BEDEEA8ED636891FD7351FA7CCBC75FDB5BEE6EFDE5320162F712E8457E73EA",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/rhysd/actionlint/v1.6.25/actionlint_1.6.25_windows_amd64.zip",
"checksum": "8F572A723F362F2AB05777AAD0C85322FECF130E6FF0CA8CA0A6FB3A3414AC1B",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/rhysd/actionlint/v1.6.25/actionlint_1.6.25_windows_arm64.zip",
"checksum": "C949756B78D77164BD80F40D0443D1F7CF46FC4E704DBE89D0E42AE75020529C",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/cmdx/v1.7.2/cmdx_darwin_amd64.tar.gz",
"checksum": "F7D7DC646C8EA55CF6B85C6053A32A7F56CEC974CAD429267AC90319D8ED869D",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/cmdx/v1.7.2/cmdx_darwin_arm64.tar.gz",
"checksum": "F28D83E63007D48526B0F36F09CE90235665F0310B97CA4B917275BB80E245BD",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/cmdx/v1.7.2/cmdx_linux_amd64.tar.gz",
"checksum": "E148DE6C2C3452EDAC327D7751C2D09B69979009A53B0D9AF570404CF07718E9",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/cmdx/v1.7.2/cmdx_linux_arm64.tar.gz",
"checksum": "38C209C6F6938F853C0054A566A1456FCEB8405E5155430965E7629AAD8E7909",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/cmdx/v1.7.2/cmdx_windows_amd64.tar.gz",
"checksum": "7A08A0F211E5ED8B8583A2392F1D23321E1F3C62796AD7B4C3DDB2E1A6DAB0D4",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/cmdx/v1.7.2/cmdx_windows_arm64.tar.gz",
"checksum": "A9CA7BF8067C55556A914539245E4E0158B5B3E3C4D8EDE7A89159B244E0FEB2",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/ghalint/v0.2.2/ghalint_0.2.2_darwin_amd64.tar.gz",
"checksum": "2F520D13DB10EF8ABD3942DEC2CEA1792B0A7289F7466219B252169AA8124177",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/ghalint/v0.2.2/ghalint_0.2.2_darwin_arm64.tar.gz",
"checksum": "3BF497D0C62B70DBC4379418D7009689937D9B5499A59E2B0B8D29A4941B81A7",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/ghalint/v0.2.2/ghalint_0.2.2_linux_amd64.tar.gz",
"checksum": "A74B5A64A18BCA0077593D21E9DADBD01657D05EE6DB95467A285B1E4A904CA5",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/ghalint/v0.2.2/ghalint_0.2.2_linux_arm64.tar.gz",
"checksum": "6A68353872D10DAD8CDC7F4F9592D887F127D064511BA89FF89FAFC1DDCB7492",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/ghalint/v0.2.2/ghalint_0.2.2_windows_amd64.tar.gz",
"checksum": "D83BAFC44A5F218D42533140EBE924EFF483357718CE784C6E19010C553C0A0A",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/suzuki-shunsuke/ghalint/v0.2.2/ghalint_0.2.2_windows_arm64.tar.gz",
"checksum": "3B733BC72D27C83E73C4F8D7691BF7781DCC5E3BF2378C441A70AA44202D83F2",
"algorithm": "sha256"
},
{
"id": "registries/github_content/github.com/aquaproj/aqua-registry/v4.25.0/registry.yaml",
"checksum": "61DA04DFBE8297110BF59061EF2C1D539D04CA577B6AE35C8FED610CBB402560CE9F2BDA8BA8959CBB22ABC6B2E5CABC35DBF6A2BC9696C018C4CBA2ABFC3361",
"algorithm": "sha512"
}
]
}
11 changes: 11 additions & 0 deletions aqua/aqua.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
checksum:
enabled: true
require_checksum: true
registries:
- type: standard
ref: v4.25.0 # renovate: depName=aquaproj/aqua-registry
packages:
- import: imports/*.yaml
2 changes: 2 additions & 0 deletions aqua/imports/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: rhysd/[email protected]
2 changes: 2 additions & 0 deletions aqua/imports/cmdx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: suzuki-shunsuke/[email protected]
2 changes: 2 additions & 0 deletions aqua/imports/ghalint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: suzuki-shunsuke/[email protected]
2 changes: 2 additions & 0 deletions aqua/imports/ghcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: int128/[email protected]
2 changes: 2 additions & 0 deletions aqua/imports/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: golangci/[email protected]
2 changes: 2 additions & 0 deletions aqua/imports/reviewdog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: reviewdog/[email protected]
Loading

0 comments on commit 03df2f6

Please sign in to comment.