Skip to content

Commit

Permalink
update CI/CD go versions and go.mod to 1.21 and add badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Jun 14, 2024
1 parent 528d115 commit 4f9bdbe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/on-push-pr.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: CI/CD
on:
push:
branches: [main]
Expand All @@ -8,11 +9,11 @@ jobs:
format-build-test:
strategy:
matrix:
go-version: ['1.19.x', '1.21.x']
go-version: ['1.21.x', '1.22.x']
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
Expand All @@ -32,7 +33,7 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0

Expand Down Expand Up @@ -69,13 +70,13 @@ jobs:
needs: format-build-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0

- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.19.x'
go-version: '1.21.x'

- run: CGO_ENABLED=0 make release

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Release
on:
release:
types: [published]
Expand All @@ -7,13 +8,13 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0

- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.19.x'
go-version: '1.21.x'

- run: CGO_ENABLED=0 make release

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# mysqlscepserver

[![CI/CD](https://github.com/jessepeterson/mysqlscepserver/workflows/CI%2FCD/badge.svg)](https://github.com/jessepeterson/mysqlscepserver/actions)

`mysqlscepserver` is a small, slightly opinionated SCEP server. It uses a MySQL backend for the CA's storage. `mysqlscepserver` is largely based on the [MicroMDM SCEP](https://github.com/micromdm/scep) server.

## Getting the latest version
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/jessepeterson/mysqlscepserver

go 1.19
go 1.21

toolchain go1.21.3

require (
github.com/go-kit/kit v0.13.0
Expand Down

0 comments on commit 4f9bdbe

Please sign in to comment.