-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
25 additions
and
98 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 |
---|---|---|
|
@@ -11,12 +11,16 @@ env: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golang:1.21 | ||
env: | ||
TEST_RESULTS: "/tmp/test-results" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: stable | ||
- name: restore_cache | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -39,16 +43,6 @@ jobs: | |
run: | | ||
go install golang.org/x/tools/cmd/stringer@latest | ||
# For some reason goreleaser isn't correctly setting the version | ||
# string used by "dnscontrol version". Therefore, we're forcing the | ||
# string using the GORELEASER_CURRENT_TAG feature. | ||
# TODO(tlim): Use the native gorelease version mechanism. | ||
- name: Retrieve version | ||
id: version | ||
run: | | ||
echo "TAG_NAME=$(git config --global --add safe.directory /__w/dnscontrol/dnscontrol ; git describe)" >> $GITHUB_OUTPUT | ||
- name: Reveal version | ||
run: echo ${{ steps.version.outputs.TAG_NAME }} | ||
- | ||
id: build_binaries_tagged | ||
name: Build binaries (if tagged) | ||
|
@@ -58,19 +52,13 @@ jobs: | |
distribution: goreleaser | ||
version: latest | ||
args: build | ||
env: | ||
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.TAG_NAME }} | ||
- | ||
id: build_binaries_not_tagged | ||
name: Build binaries (not tagged) | ||
if: github.ref_type != 'tag' | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: build --snapshot | ||
env: | ||
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.TAG_NAME }} | ||
integration-test-providers: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
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
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 was deleted.
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