Cleaning up the actions

This commit is contained in:
iratusmachina 2025-05-07 18:25:36 -04:00
parent 7f27875bdb
commit 7924f3c5cf
3 changed files with 3 additions and 9 deletions

View File

@ -18,13 +18,11 @@ jobs:
go-version: ['', 'oldstable', 'stable'] go-version: ['', 'oldstable', 'stable']
steps: steps:
# git show-ref v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # git show-ref v4.2.2 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # git show-ref v4.2.2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Go version ${{ matrix.go-version }} - name: Setup Go version ${{ matrix.go-version }}
# git show-ref v5.4.0
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # git show-ref v5.4.0 uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # git show-ref v5.4.0
with: with:
# Uses the condition found in here (https://github.com/actions/setup-go?tab=readme-ov-file#getting-go-version-from-the-gomod-file) # Uses the condition found in here (https://github.com/actions/setup-go?tab=readme-ov-file#getting-go-version-from-the-gomod-file)
@ -32,7 +30,6 @@ jobs:
go-version-file: 'go.mod' go-version-file: 'go.mod'
- name: Lint with ${{ matrix.go-version }} - name: Lint with ${{ matrix.go-version }}
# git show-ref v6.5.2
uses: golangci/golangci-lint-action@8564da7cb3c6866ed1da648ca8f00a258ef0c802 # git show-ref v6.5.2 uses: golangci/golangci-lint-action@8564da7cb3c6866ed1da648ca8f00a258ef0c802 # git show-ref v6.5.2
with: with:
args: --timeout=3m --verbose args: --timeout=3m --verbose

View File

@ -16,24 +16,21 @@ jobs:
strategy: strategy:
matrix: matrix:
# Uses some of the solutions found here (https://github.com/actions/setup-go/issues/450) # Uses some of the solutions found here (https://github.com/actions/setup-go/issues/450)
go-version: ['', 'oldstable', 'stable'] go-version: ['']
steps: steps:
# git show-ref v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # git show-ref v4.2.2 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # git show-ref v4.2.2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Go version ${{ matrix.go-version }} - name: Setup Go version ${{ matrix.go-version }}
# git show-ref v5.4.0
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # git show-ref v5.4.0 uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # git show-ref v5.4.0
with: with:
# Uses the condition found in here (https://github.com/actions/setup-go?tab=readme-ov-file#getting-go-version-from-the-gomod-file) # Uses the condition found in here (https://github.com/actions/setup-go?tab=readme-ov-file#getting-go-version-from-the-gomod-file)
go-version: ${{ matrix.go-version }} # go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod' go-version-file: 'go.mod'
- name: Lint with ${{ matrix.go-version }} - name: Lint with ${{ matrix.go-version }}
# git show-ref v6.5.2
uses: golangci/golangci-lint-action@8564da7cb3c6866ed1da648ca8f00a258ef0c802 # git show-ref v6.5.2 uses: golangci/golangci-lint-action@8564da7cb3c6866ed1da648ca8f00a258ef0c802 # git show-ref v6.5.2
with: with:
args: --timeout=3m --verbose args: --timeout=3m --verbose

View File

@ -67,6 +67,6 @@ jbowen.dev/cereal (download)
* [x] Add systemd.service and explanation * [x] Add systemd.service and explanation
* [x] Add Dockerfile and explanation * [x] Add Dockerfile and explanation
* [x] Add mirror to Github * [x] Add mirror to Github
* [ ] Add Github action * [ ] Add Github action (self-hosted, [act](https://github.com/nektos/act), Github)
* [ ] Figure how to use `goreleaser` [here](https://nfpm.goreleaser.com/) to release deb and rpm packages (so basically split it, goreleaser for github and woodpecker for Woodpecker) * [ ] Figure how to use `goreleaser` [here](https://nfpm.goreleaser.com/) to release deb and rpm packages (so basically split it, goreleaser for github and woodpecker for Woodpecker)
* [ ] Update README.md * [ ] Update README.md