-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move to environment secrets (#2653)
* chore: move to environment secrets * fix: secrets based on feedback * fix: name of token * fix: add 'promote' environment * ci: change unit test format
- Loading branch information
Showing
4 changed files
with
22 additions
and
43 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 |
---|---|---|
|
@@ -21,7 +21,6 @@ jobs: | |
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- uses: golangci/[email protected] | ||
with: | ||
version: v1.62 | ||
|
@@ -45,18 +44,13 @@ jobs: | |
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- uses: actions/cache@v4 | ||
if: ${{ !env.ACT }} | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Install gotestfmt | ||
run: go install github.com/gotesttools/gotestfmt/v2/cmd/[email protected] | ||
- name: Run Tests | ||
run: go test -json -v -cover -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -timeout 20m ./... | gotestfmt -hide successful-packages,empty-packages 2>&1 | ||
run: go run gotest.tools/gotestsum@latest --junitfile unit-tests.xml --format pkgname -- -v -cover -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -timeout 20m ./... | ||
- name: Test Summary | ||
uses: test-summary/action@v2 | ||
with: | ||
paths: "unit-tests.xml" | ||
if: always() | ||
- name: Run act from cli | ||
run: go run main.go -P ubuntu-latest=node:16-buster-slim -C ./pkg/runner/testdata/ -W ./basic/push.yml | ||
- name: Run act from cli without docker support | ||
|
@@ -83,12 +77,14 @@ jobs: | |
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: Install gotestfmt | ||
run: go install github.com/gotesttools/gotestfmt/v2/cmd/[email protected] | ||
- name: Run Tests | ||
run: go test -v -cover -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -timeout 20m -run ^TestRunEventHostEnvironment$ ./... | ||
run: go run gotest.tools/gotestsum@latest --junitfile unit-tests.xml --format pkgname -- -v -cover -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -timeout 20m -run ^TestRunEventHostEnvironment$ ./... | ||
shell: bash | ||
- name: Test Summary | ||
uses: test-summary/action@v2 | ||
with: | ||
paths: "unit-tests.xml" | ||
if: always() | ||
|
||
|
||
snapshot: | ||
|
@@ -99,14 +95,6 @@ jobs: | |
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- uses: actions/cache@v4 | ||
if: ${{ !env.ACT }} | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -25,6 +25,7 @@ pkg/runner/act/ | |
dist/local/act | ||
|
||
coverage.txt | ||
unit-tests.xml | ||
|
||
.env | ||
.secrets | ||
|