From 1e2b29201c1bac8589156ba2fda11cb3ffe45797 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Fri, 13 Oct 2023 16:27:30 -0700 Subject: [PATCH] ci: Use `setup-go` to install Go v1.20 (#485) --- .github/workflows/format.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index f7d1c71c6..4d0366e64 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -17,11 +17,14 @@ jobs: format: "json" - name: Check out code. uses: actions/checkout@v2 + - uses: 'actions/setup-go@v4' + with: + go-version: '1.20' - name: "Check EditorConfig Lint" env: EDITORCONFIG_FLAGS: '-disable-indent-size -disable-indentation' run: | - sudo apt install -y jq golang + sudo apt install -y jq go install 'github.com/editorconfig-checker/editorconfig-checker/cmd/editorconfig-checker@latest' readarray -t changed_files <<<"$(jq -r '.[]' <<<'${{ steps.files.outputs.added_modified }}')" ~/go/bin/editorconfig-checker ${{ env.EDITORCONFIG_FLAGS }} ${changed_files[@]}