mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-14 01:11:30 +00:00
Enforce Go 1.19 for builds.
This commit is contained in:
@@ -14,6 +14,7 @@ env:
|
|||||||
ENABLE_CODE_LINT: false
|
ENABLE_CODE_LINT: false
|
||||||
ENABLE_CODE_SCANS: false
|
ENABLE_CODE_SCANS: false
|
||||||
DEPLOY: false
|
DEPLOY: false
|
||||||
|
GO_VERSION: 1.19
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
@@ -61,6 +62,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
if: env.ENABLE_CODE_LINT == true
|
if: env.ENABLE_CODE_LINT == true
|
||||||
env:
|
env:
|
||||||
@@ -92,6 +97,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Configure git for private modules
|
- name: Configure git for private modules
|
||||||
run: |
|
run: |
|
||||||
make update
|
make update
|
||||||
@@ -205,6 +214,10 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Compile and release semver
|
- name: Compile and release semver
|
||||||
uses: wangyoucao577/go-release-action@v1.32
|
uses: wangyoucao577/go-release-action@v1.32
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user