Compare commits

..

No commits in common. "dd93dae27aa52b0c27a35cd81248a083fa9753f5" and "7f27875bdb3975182be930cf07e24a9144dfdd82" have entirely different histories.

3 changed files with 11 additions and 6 deletions

View File

@ -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,12 +18,13 @@ 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)
@ -31,6 +32,7 @@ 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

View File

@ -16,21 +16,24 @@ jobs:
strategy:
matrix:
# Uses some of the solutions found here (https://github.com/actions/setup-go/issues/450)
go-version: ['']
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
- 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

View File

@ -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 (self-hosted, [act](https://github.com/nektos/act), Github)
* [ ] Add Github action
* [ ] 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