From 4f9bdbe832ee48e6eb39ef0de59d2666d9691302 Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Fri, 14 Jun 2024 12:33:05 -0700 Subject: [PATCH] update CI/CD go versions and go.mod to 1.21 and add badge. --- .github/workflows/on-push-pr.yml | 11 ++++++----- .github/workflows/on-release.yml | 5 +++-- README.md | 2 ++ go.mod | 4 +++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/on-push-pr.yml b/.github/workflows/on-push-pr.yml index c5667cb..09b70ff 100644 --- a/.github/workflows/on-push-pr.yml +++ b/.github/workflows/on-push-pr.yml @@ -1,3 +1,4 @@ +name: CI/CD on: push: branches: [main] @@ -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: @@ -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 @@ -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 diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 24e0e2b..f9722e6 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -1,3 +1,4 @@ +name: Release on: release: types: [published] @@ -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 diff --git a/README.md b/README.md index 92350dd..92e2b15 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/go.mod b/go.mod index 6b7fb06..b138c90 100644 --- a/go.mod +++ b/go.mod @@ -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