mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
ci: Use setup-go
to install Go v1.20 (#485)
This commit is contained in:
5
.github/workflows/format.yml
vendored
5
.github/workflows/format.yml
vendored
@ -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[@]}
|
||||
|
Reference in New Issue
Block a user