mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2026-01-08 09:17:19 +08:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5.0.0 to 6.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's releases</a>.</em></p> <blockquote> <h2>v6.0.0</h2> <h2>v6 - What's new</h2> <blockquote> <p>[!IMPORTANT] actions/upload-artifact@v6 now runs on Node.js 24 (<code>runs.using: node24</code>) and requires a minimum Actions Runner version of 2.327.1. If you are using self-hosted runners, ensure they are updated before upgrading.</p> </blockquote> <h3>Node.js 24</h3> <p>This release updates the runtime to Node.js 24. v5 had preliminary support for Node.js 24, however this action was by default still running on Node.js 20. Now this action by default will run on Node.js 24.</p> <h2>What's Changed</h2> <ul> <li>Upload Artifact Node 24 support by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/upload-artifact/pull/719">actions/upload-artifact#719</a></li> <li>fix: update <code>@actions/artifact</code> for Node.js 24 punycode deprecation by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/upload-artifact/pull/744">actions/upload-artifact#744</a></li> <li>prepare release v6.0.0 for Node.js 24 support by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/upload-artifact/pull/745">actions/upload-artifact#745</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/upload-artifact/compare/v5.0.0...v6.0.0">https://github.com/actions/upload-artifact/compare/v5.0.0...v6.0.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="b7c566a772"><code>b7c566a</code></a> Merge pull request <a href="https://redirect.github.com/actions/upload-artifact/issues/745">#745</a> from actions/upload-artifact-v6-release</li> <li><a href="e516bc8500"><code>e516bc8</code></a> docs: correct description of Node.js 24 support in README</li> <li><a href="ddc45ed9bc"><code>ddc45ed</code></a> docs: update README to correct action name for Node.js 24 support</li> <li><a href="615b319bd2"><code>615b319</code></a> chore: release v6.0.0 for Node.js 24 support</li> <li><a href="017748b48f"><code>017748b</code></a> Merge pull request <a href="https://redirect.github.com/actions/upload-artifact/issues/744">#744</a> from actions/fix-storage-blob</li> <li><a href="38d4c7997f"><code>38d4c79</code></a> chore: rebuild dist</li> <li><a href="7d27270e0c"><code>7d27270</code></a> chore: add missing license cache files for <code>@actions/core</code>, <code>@actions/io</code>, and mi...</li> <li><a href="5f643d3c94"><code>5f643d3</code></a> chore: update license files for <code>@actions/artifact</code><a href="https://github.com/5"><code>@5</code></a>.0.1 dependencies</li> <li><a href="1df1684032"><code>1df1684</code></a> chore: update package-lock.json with <code>@actions/artifact</code><a href="https://github.com/5"><code>@5</code></a>.0.1</li> <li><a href="b5b1a91840"><code>b5b1a91</code></a> fix: update <code>@actions/artifact</code> to ^5.0.0 for Node.js 24 punycode fix</li> <li>Additional commits viewable in <a href="https://github.com/actions/upload-artifact/compare/v5.0.0...v6.0.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
83 lines
2.5 KiB
YAML
83 lines
2.5 KiB
YAML
name: "PR: Run UNIT tests and Build artifacts for all platforms"
|
|
|
|
# When will this pipeline be activated?
|
|
# 1. On any pull-request, or if someone pushes to a branch called
|
|
# "tlim_testpr".
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
# Want to trigger all the tests without making a PR?
|
|
# Run: git push origin main:tlim_testpr --force
|
|
# This will trigger a full PR test on the main branch.
|
|
# See https://github.com/StackExchange/dnscontrol/actions/workflows/pr_build.yml?query=branch%3Atlim_testpr
|
|
push:
|
|
branches:
|
|
- 'tlim_testpr'
|
|
|
|
# Environment Variables
|
|
env:
|
|
# cache-key: Change to force cache reset `pwsh > Get-Date -UFormat %s`
|
|
cache-key: 1639697695
|
|
# go-mod-path: Where go-mod writes temp files
|
|
go-mod-path: /go/pkg/mod
|
|
# BIND_DOMAIN: BIND is the one providers that we always test. By
|
|
# defining this here, we know it will always be set.
|
|
BIND_DOMAIN: example.com
|
|
|
|
jobs:
|
|
|
|
# Run unit tests:
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
TEST_RESULTS: "/tmp/test-results"
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: stable
|
|
- name: restore_cache
|
|
uses: actions/cache@v5.0.1
|
|
with:
|
|
key: linux-go-${{ hashFiles('go.sum') }}-${{ env.cache-key }}
|
|
restore-keys: linux-go-${{ hashFiles('go.sum') }}-${{ env.cache-key }}
|
|
path: ${{ env.go-mod-path }}
|
|
- run: mkdir -p "$TEST_RESULTS"
|
|
- name: Run unit tests
|
|
run: |
|
|
go install gotest.tools/gotestsum@latest
|
|
gotestsum --junitfile ${TEST_RESULTS}/gotestsum-report.xml -- $PACKAGE_NAMES
|
|
# - name: Enforce Go Formatted Code
|
|
# run: "[ `go fmt ./... | wc -l` -eq 0 ]"
|
|
- uses: actions/upload-artifact@v6.0.0
|
|
with:
|
|
name: unit-tests
|
|
path: ${{ env.TEST_RESULTS }}
|
|
|
|
# build: Use GoReleaser to build binaries for all platforms.
|
|
|
|
# Stringer is needed because .goreleaser includes "go generate ./..."
|
|
- name: Install stringer
|
|
run: |
|
|
go install golang.org/x/tools/cmd/stringer@latest
|
|
|
|
-
|
|
id: build_binaries_tagged
|
|
name: Build binaries (if tagged)
|
|
if: github.ref_type == 'tag'
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
distribution: goreleaser
|
|
version: latest
|
|
args: build
|
|
-
|
|
id: build_binaries_not_tagged
|
|
name: Build binaries (not tagged)
|
|
if: github.ref_type != 'tag'
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
args: build --snapshot
|