Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updates now issues with pre-commit cachine fixed #9

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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