-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Handle goprivate for GitHub (#37)
Handle GOPRIVATE env variable, limited to git VCS and github source in particular.
- Loading branch information
1 parent
be4b7c7
commit 930ea7e
Showing
31 changed files
with
1,200 additions
and
206 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Automatically sets up your devbox environment whenever you cd into this | ||
# directory via our direnv integration: | ||
|
||
eval "$(devbox generate direnv --print-envrc)" | ||
|
||
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/ | ||
# for more details |
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 |
---|---|---|
|
@@ -9,35 +9,14 @@ on: | |
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
- name: Install devbox | ||
uses: jetpack-io/[email protected] | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: Set up prerequisites - node and yarn | ||
uses: actions/setup-node@v4 | ||
- name: Set up yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Run spell and markdown checkers | ||
run: make check/spell check/trailing check/markdown | ||
- name: Check formatting | ||
run: make check/format | ||
- name: Run go vet | ||
run: make check/vet | ||
- name: Run golangci-lint | ||
run: make check/lint | ||
- name: Run Gosec Security Scanner | ||
run: make check/gosec | ||
enable-cache: true | ||
- name: Run checks | ||
run: devbox run -- make check | ||
- name: Run tests | ||
run: make test | ||
run: devbox run -- make test |
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 |
---|---|---|
|
@@ -15,10 +15,9 @@ jobs: | |
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
- name: Install devbox | ||
uses: jetpack-io/[email protected] | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
enable-cache: true | ||
- name: Run Golang Vulncheck | ||
run: make check/vulns | ||
run: devbox run -- make check/vulns |
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
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
Oops, something went wrong.