Skip to content

Commit

Permalink
chore: adding go orb
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Nov 1, 2024
1 parent b410cb6 commit 26c4c67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,22 @@ jobs:
image: ubuntu-2004:2024.05.1
working_directory: ~/cas-ggircs
steps:
- run:
name: Install Go for pre-commit
command: |
wget https://go.dev/dl/go1.22.8.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.8.linux-amd64.tar.gz
echo -e '\nexport export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrc
- attach_workspace:
at: ~/
- run:
name: Verify style with pre-commit
command: |
source ~/.asdf/asdf.sh
asdf reshim
pre-commit clean
pre-commit install
pre-commit run --all-files
- run:
name: Check if there is some unformatted code
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: trailing-whitespace
exclude: .*/tests/.*
- repo: https://github.com/zricethezav/gitleaks
rev: v8.21.1
rev: v8.19.3
hooks:
- id: gitleaks
- repo: https://github.com/jorisroovers/gitlint
Expand Down
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ postgres 14.0
nodejs 20.11.1
yarn 1.22.10
python 3.9.2
golang 1.22.0

0 comments on commit 26c4c67

Please sign in to comment.