Compare commits
3 Commits
7f27875bdb
...
dd93dae27a
Author | SHA1 | Date |
---|---|---|
|
dd93dae27a | |
|
1d5af125a0 | |
|
7924f3c5cf |
|
@ -9,8 +9,8 @@ jobs:
|
|||
lint_and_test:
|
||||
# if: ${{ !github.event.act }} # Skip during local actions testing
|
||||
if: github.repository == 'garrancode/gocustomurls'
|
||||
# runs-on: [ubuntu-latest, self-hosted]
|
||||
runs-on: [ubuntu-latest]
|
||||
runs-on: [ubuntu-latest, self-hosted]
|
||||
# runs-on: [ubuntu-latest]
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -18,13 +18,12 @@ jobs:
|
|||
go-version: ['', 'oldstable', 'stable']
|
||||
|
||||
steps:
|
||||
# git show-ref v4.2.2
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # git show-ref v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false # https://yossarian.net/til/post/actions-checkout-can-leak-github-credentials/
|
||||
|
||||
- name: Setup Go version ${{ matrix.go-version }}
|
||||
# git show-ref v5.4.0
|
||||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # git show-ref v5.4.0
|
||||
with:
|
||||
# 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 +31,6 @@ jobs:
|
|||
go-version-file: 'go.mod'
|
||||
|
||||
- name: Lint with ${{ matrix.go-version }}
|
||||
# git show-ref v6.5.2
|
||||
uses: golangci/golangci-lint-action@8564da7cb3c6866ed1da648ca8f00a258ef0c802 # git show-ref v6.5.2
|
||||
with:
|
||||
args: --timeout=3m --verbose
|
||||
|
|
|
@ -16,24 +16,21 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
# Uses some of the solutions found here (https://github.com/actions/setup-go/issues/450)
|
||||
go-version: ['', 'oldstable', 'stable']
|
||||
go-version: ['']
|
||||
|
||||
steps:
|
||||
# git show-ref v4.2.2
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # git show-ref v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Go version ${{ matrix.go-version }}
|
||||
# git show-ref v5.4.0
|
||||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # git show-ref v5.4.0
|
||||
with:
|
||||
# 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'
|
||||
|
||||
- name: Lint with ${{ matrix.go-version }}
|
||||
# git show-ref v6.5.2
|
||||
uses: golangci/golangci-lint-action@8564da7cb3c6866ed1da648ca8f00a258ef0c802 # git show-ref v6.5.2
|
||||
with:
|
||||
args: --timeout=3m --verbose
|
||||
|
|
|
@ -67,6 +67,6 @@ jbowen.dev/cereal (download)
|
|||
* [x] Add systemd.service and explanation
|
||||
* [x] Add Dockerfile and explanation
|
||||
* [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)
|
||||
* [ ] Update README.md
|
||||
|
|
Loading…
Reference in New Issue