From 24ae40417260582758530a0e9f5449bbc02c4019 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Fri, 12 Sep 2025 12:02:20 +1000 Subject: [PATCH 1/7] Inital tests --- .../workflows/{lint.yml => mise-install.yml} | 2 +- .github/workflows/test.yml | 24 ----------------- .github/workflows/ubuntu.yml | 27 +++++++++++++++++++ 3 files changed, 28 insertions(+), 25 deletions(-) rename .github/workflows/{lint.yml => mise-install.yml} (95%) delete mode 100644 .github/workflows/test.yml create mode 100644 .github/workflows/ubuntu.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/mise-install.yml similarity index 95% rename from .github/workflows/lint.yml rename to .github/workflows/mise-install.yml index 62fab19..1e0eaf5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/mise-install.yml @@ -1,4 +1,4 @@ -name: Lint +name: Mise Install on: push: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index ad3d513..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Test - -on: - push: - branches: - - main - pull_request: - -jobs: - test: - name: test - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v5 - - - name: Install Mise - run: | - curl https://mise.run | sh - mise install - - - name: Test - run: | - mise run test diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..f9b9809 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,27 @@ +name: Ubuntu + Setup Go + +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v5 + + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - name: golangci-lint + uses: golangci/golangci-lint-action@v8 + with: + version: v2.1 From 90b5b9b8e3894416b5156be7989d1cf4133c3786 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Fri, 12 Sep 2025 12:11:19 +1000 Subject: [PATCH 2/7] remove releaser --- .mise.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/.mise.toml b/.mise.toml index 1bfbde4..f3ec04c 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,7 +1,6 @@ [tools] go = "1.25" "ubi:golangci/golangci-lint" = "latest" -"ubi:goreleaser/goreleaser" = "latest" [env] CGO_ENABLED=0 From fd2f33c75503d7d904aaefa969dd479d95d556a2 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Fri, 12 Sep 2025 12:15:50 +1000 Subject: [PATCH 3/7] Mise install: --- .github/workflows/mise-install.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mise-install.yml b/.github/workflows/mise-install.yml index 1e0eaf5..7b01271 100644 --- a/.github/workflows/mise-install.yml +++ b/.github/workflows/mise-install.yml @@ -17,10 +17,9 @@ jobs: - name: Checkout Code uses: actions/checkout@v5 - - name: Install Mise - run: | - curl https://mise.run | sh - mise install + - uses: jdx/mise-action@v2 + with: + version: latest - name: Lint run: | From 4983197aa6ad3a0052d4482f9f9a3f7f453bae98 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Fri, 12 Sep 2025 12:17:12 +1000 Subject: [PATCH 4/7] Mise install: --- .github/workflows/mise-install.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/mise-install.yml b/.github/workflows/mise-install.yml index 7b01271..ed60c6a 100644 --- a/.github/workflows/mise-install.yml +++ b/.github/workflows/mise-install.yml @@ -18,8 +18,6 @@ jobs: uses: actions/checkout@v5 - uses: jdx/mise-action@v2 - with: - version: latest - name: Lint run: | From 588a63e53a2a2138d11e387578fdf118aa1e7e67 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Fri, 12 Sep 2025 12:24:57 +1000 Subject: [PATCH 5/7] use the docs --- .github/workflows/mise-install.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/mise-install.yml b/.github/workflows/mise-install.yml index ed60c6a..4b635d2 100644 --- a/.github/workflows/mise-install.yml +++ b/.github/workflows/mise-install.yml @@ -18,6 +18,11 @@ jobs: uses: actions/checkout@v5 - uses: jdx/mise-action@v2 + with: + version: 2024.12.14 # [default: latest] mise version to install + install: true # [default: true] run `mise install` + cache: true # [default: true] cache mise using GitHub's cache + experimental: true # [default: false] enable experimental features - name: Lint run: | From b9cfee39b982dbc3e2b8b1850aa0d8971d6174ce Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Fri, 12 Sep 2025 12:34:29 +1000 Subject: [PATCH 6/7] Container --- .github/workflows/mise-container.yml | 23 +++++++++++++++++++++++ .github/workflows/mise-install.yml | 10 ++++------ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/mise-container.yml diff --git a/.github/workflows/mise-container.yml b/.github/workflows/mise-container.yml new file mode 100644 index 0000000..31b40b1 --- /dev/null +++ b/.github/workflows/mise-container.yml @@ -0,0 +1,23 @@ +name: Mise Container + +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + container: docker.io/nickschuch/mise:latest + steps: + - name: Checkout Code + uses: actions/checkout@v5 + + - name: Lint + run: | + mise run lint diff --git a/.github/workflows/mise-install.yml b/.github/workflows/mise-install.yml index 4b635d2..1e0eaf5 100644 --- a/.github/workflows/mise-install.yml +++ b/.github/workflows/mise-install.yml @@ -17,12 +17,10 @@ jobs: - name: Checkout Code uses: actions/checkout@v5 - - uses: jdx/mise-action@v2 - with: - version: 2024.12.14 # [default: latest] mise version to install - install: true # [default: true] run `mise install` - cache: true # [default: true] cache mise using GitHub's cache - experimental: true # [default: false] enable experimental features + - name: Install Mise + run: | + curl https://mise.run | sh + mise install - name: Lint run: | From 06425509f8693b1ac05122c998b9144d1414dbd1 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Fri, 12 Sep 2025 12:52:51 +1000 Subject: [PATCH 7/7] Use test instead --- .github/workflows/mise-container.yml | 2 +- .github/workflows/mise-install.yml | 4 ++-- .github/workflows/ubuntu.yml | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mise-container.yml b/.github/workflows/mise-container.yml index 31b40b1..174cc60 100644 --- a/.github/workflows/mise-container.yml +++ b/.github/workflows/mise-container.yml @@ -20,4 +20,4 @@ jobs: - name: Lint run: | - mise run lint + mise run test diff --git a/.github/workflows/mise-install.yml b/.github/workflows/mise-install.yml index 1e0eaf5..85d0ede 100644 --- a/.github/workflows/mise-install.yml +++ b/.github/workflows/mise-install.yml @@ -22,6 +22,6 @@ jobs: curl https://mise.run | sh mise install - - name: Lint + - name: Test run: | - mise run lint + mise run test diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f9b9809..bdbfe35 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -21,7 +21,6 @@ jobs: with: go-version-file: 'go.mod' - - name: golangci-lint - uses: golangci/golangci-lint-action@v8 - with: - version: v2.1 + - name: Test + run: | + go test -cover ./...