Skip to content

Commit

Permalink
feat: updates now issues with pre-commit cachine fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Aug 18, 2023
1 parent 6605ab5 commit 7b39983
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'

Expand Down
1 change: 1 addition & 0 deletions blank/{{ cookiecutter.project_name }}/.gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ vscode:
- EditorConfig.EditorConfig
- waderyan.gitblame
- GitHub.vscode-github-actions
- ms-vscode.makefile-tools
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,20 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'
go-version-file: go.mod

- name: Install dependencies
run: |
go install ./...
- uses: actions/setup-python@v4
with:
python-version: 3.x

go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install github.com/kisielk/errcheck@latest
go install mvdan.cc/gofumpt@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
go install golang.org/x/tools/cmd/goimports@latest
- name: Install dependencies
run: go install ./...

- name: go-vet
run: go vet -v ./...

- uses: actions/setup-python@v3

- uses: pre-commit/[email protected]

build:
Expand Down
13 changes: 0 additions & 13 deletions golang-cobra/{{ cookiecutter.project_name }}/.gitpod.Dockerfile

This file was deleted.

18 changes: 15 additions & 3 deletions golang-cobra/{{ cookiecutter.project_name }}/.gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
image:
file: .gitpod.Dockerfile

tasks:
- name: Setup
command: |
curl -sfL gpm.simonemms.com | bash
gpm install pre-commit
pip install cookieninja cruft
go install github.com/spf13/cobra-cli@latest
gp sync-done setup
pre-commit install --install-hooks -t pre-commit -t commit-msg
gp sync-done pre-commit
Expand All @@ -14,6 +21,8 @@ tasks:
go install ./...
fi
command: |
gp sync-await setup
# Copy .cobra.yaml to $HOME
ln -s $PWD/.cobra.yaml $HOME/.cobra.yaml
Expand All @@ -34,4 +43,7 @@ vscode:
extensions:
- donjayamanne.git-extension-pack
- EditorConfig.EditorConfig
- waderyan.gitblame
- GitHub.vscode-github-actions
- ms-vscode.makefile-tools
- golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ repos:
hooks:
- id: markdownlint-cli2
- repo: https://github.com/golangci/golangci-lint
rev: v1.53.2
rev: v1.54.1
hooks:
- id: golangci-lint

0 comments on commit 7b39983

Please sign in to comment.