-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix and cleanup a few workflows, use latest version of sqlc (#128)
- Loading branch information
1 parent
36cb2b7
commit 71832c8
Showing
12 changed files
with
16 additions
and
24 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
- name: Export constant environmental variables | ||
uses: cardinalby/export-env-action@v2 | ||
with: | ||
envFile: .github/workflows/constants.env | ||
envFile: .github/constants.env | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
|
@@ -50,7 +50,7 @@ jobs: | |
- name: Export constant environmental variables | ||
uses: cardinalby/export-env-action@v2 | ||
with: | ||
envFile: .github/workflows/constants.env | ||
envFile: .github/constants.env | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
|
@@ -67,16 +67,14 @@ jobs: | |
golangci-lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
permissions: | ||
pull-requests: read | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Export constant environmental variables | ||
uses: cardinalby/export-env-action@v2 | ||
with: | ||
envFile: .github/workflows/constants.env | ||
envFile: .github/constants.env | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
|
@@ -87,5 +85,3 @@ jobs: | |
|
||
- name: Lint with golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
only-new-issues: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import ( | |
"github.com/capnspacehook/whalewall/database" | ||
) | ||
|
||
//go:generate sqlc generate | ||
//go:generate go run github.com/sqlc-dev/sqlc/cmd/[email protected] generate | ||
|
||
func (r *RuleManager) containerExists(ctx context.Context, db database.Querier, id string) (bool, error) { | ||
exists, err := db.ContainerExists(ctx, id) | ||
|