|
|
@ -5,23 +5,34 @@ on:
|
|
|
|
branches: [master, develop]
|
|
|
|
branches: [master, develop]
|
|
|
|
pull_request:
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
|
|
|
|
force_run:
|
|
|
|
|
|
|
|
description: 'Force workflow run'
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
type: choice
|
|
|
|
|
|
|
|
options: [yes, no]
|
|
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
contents: read
|
|
|
|
statuses: write
|
|
|
|
statuses: write
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
SRC_DIR: src/github.com/${{ github.repository }}
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
Go:
|
|
|
|
Go:
|
|
|
|
name: Go
|
|
|
|
name: Go
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
SRC_DIR: src/github.com/${{ github.repository }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
|
go: [ '1.18.x', '1.19.x' ]
|
|
|
|
go: [ '1.19.x', '1.20.x' ]
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
|
|
- name: Set up Go
|
|
|
@ -76,14 +87,11 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
needs: Go
|
|
|
|
needs: Go
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
SRC_DIR: src/github.com/${{ github.repository }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version: '1.17.x'
|
|
|
|
go-version: '1.19.x'
|
|
|
|
id: go
|
|
|
|
id: go
|
|
|
|
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
|