[chore] Fix typo in test file names #15652
Workflow file for this run
This file contains hidden or 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
name: build-and-test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: # Allows manual execution of the workflow | |
concurrency: | |
group: build-and-test-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
GO_VERSION: 1.24.6 | |
jobs: | |
tidy: | |
name: tidy | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: ./.github/actions/setup-environment | |
- name: tidy | |
run: | | |
make tidy-all | |
if ! git diff --exit-code; then | |
echo "One or more Go files are not tidied. Run 'make tidy-all' and push the changes." | |
exit 1 | |
fi | |
gofmt: | |
name: gofmt | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: ./.github/actions/setup-environment | |
- name: gofmt | |
run: | | |
make fmt-all | |
if ! git diff --exit-code; then | |
echo "One or more Go files are not formatted correctly. Run 'make fmt-all' and push the changes." | |
exit 1 | |
fi | |
generate-metrics: | |
name: generate-metrics | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: ./.github/actions/setup-environment | |
- name: generate-metrics | |
run: | | |
make generate-metrics | |
if ! git diff --exit-code; then | |
echo "Generated code is out of date. Run 'make generate-metrics' and push the changes." | |
exit 1 | |
fi | |
lint: | |
name: lint | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: ./.github/actions/setup-environment | |
- run: echo "GOLANGCI_LINT_CACHE=${HOME}/.cache/golangci-lint" >> "$GITHUB_ENV" | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.GOLANGCI_LINT_CACHE }} | |
key: golangci-lint-${{ hashFiles('**/.golangci.yml', '**/*.go', '**/go.sum') }} | |
- name: Lint | |
run: | | |
make lint-all | |
actionlint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Download actionlint | |
id: get_actionlint | |
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/03d0035/scripts/download-actionlint.bash) # v1.7.7 | |
shell: bash | |
- name: Check workflow files | |
run: ${{ steps.get_actionlint.outputs.executable }} -color | |
shell: bash | |
test: | |
name: unit-test | |
strategy: | |
matrix: | |
# The "macos-13-xlarge" runner is arm64: https://github.com/actions/runner-images/issues/8439 | |
OS: [ "ubuntu-24.04", "macos-13", "macos-13-xlarge", "macos-14", "macos-15" ] | |
uses: ./.github/workflows/reusable-unit-test.yml | |
with: | |
OS: ${{ matrix.OS }} | |
COVERAGE: true | |
secrets: inherit | |
coverage: | |
name: coverage | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Free up disk space for next step | |
uses: jlumbroso/[email protected] | |
- uses: actions/checkout@v5 | |
- uses: ./.github/actions/setup-environment | |
- name: Run Unit Tests With Coverage | |
run: make gotest-with-codecov | |
- name: Upload coverage report | |
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # 5.5.1 | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
cross-compile: | |
strategy: | |
matrix: | |
SYS_BINARIES: [ "binaries-darwin_amd64", "binaries-darwin_arm64", "binaries-linux_amd64", "binaries-linux_arm64", "binaries-windows_amd64", "binaries-linux_ppc64le" ] | |
uses: ./.github/workflows/reusable-compile.yml | |
with: | |
SYS_BINARY: ${{ matrix.SYS_BINARIES }} |