From d1841815dc7248855246c78ced0d2e240dcf2de9 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Mon, 6 Mar 2023 10:21:21 +0300 Subject: [PATCH] Improve CI workflow --- .github/workflows/ci.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16b5cea..518824a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,23 +5,34 @@ on: branches: [master, develop] pull_request: branches: [master] + workflow_dispatch: + inputs: + force_run: + description: 'Force workflow run' + required: true + type: choice + options: [yes, no] permissions: actions: read contents: read statuses: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + SRC_DIR: src/github.com/${{ github.repository }} + jobs: Go: name: Go runs-on: ubuntu-latest - env: - SRC_DIR: src/github.com/${{ github.repository }} - strategy: matrix: - go: [ '1.18.x', '1.19.x' ] + go: [ '1.19.x', '1.20.x' ] steps: - name: Set up Go @@ -76,14 +87,11 @@ jobs: needs: Go - env: - SRC_DIR: src/github.com/${{ github.repository }} - steps: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: '1.17.x' + go-version: '1.19.x' id: go - name: Checkout