Skip to content

Commit

Permalink
ci: Use setup-go to install Go v1.20 (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Oct 13, 2023
1 parent c597bb3 commit 1e2b292
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}

0 comments on commit 1e2b292

Please sign in to comment.