From af87a5848f916c8866e52fb2e0ad359b69ad5179 Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Sat, 19 Aug 2023 15:44:54 +0900 Subject: [PATCH] Replace matrix strategy with environment variable (#619) --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8442747cf..15c00fdc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,20 +6,19 @@ on: pull_request: branches: [ main ] +env: + GO_VERSION: '1.19.2' + jobs: build: name: build - strategy: - matrix: - go_version: - - 1.19.2 runs-on: ubuntu-latest steps: - - name: Set up Go ${{ matrix.go_version }} + - name: Set up Go ${{ env.GO_VERSION }} uses: actions/setup-go@v3 with: - go-version: ${{ matrix.go_version }} + go-version: ${{ env.GO_VERSION }} - name: Setup buf action uses: bufbuild/buf-setup-action@v1