Bump github.com/efficientgo/core from 1.0.0-rc.2 to 1.0.0-rc.3 #2128
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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, update-prometheus-3.0 ] | |
jobs: | |
skip-check: | |
name: Skip check | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip-check.outputs.should_skip }} | |
permissions: | |
actions: write | |
contents: read | |
steps: | |
- id: skip-check | |
uses: fkirc/skip-duplicate-actions@v4 | |
with: | |
do_not_skip: '["schedule", "workflow_dispatch"]' | |
paths: |- | |
[ | |
"**.go", | |
".github/workflows/test.yml", | |
"go.mod", | |
"go.sum" | |
] | |
skip_after_successful_duplicate: false | |
lint: | |
runs-on: ubuntu-latest | |
name: Linters (Static Analysis) for Go | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Checkout code into the Go module directory. | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Cache binary dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.bin | |
key: ${{ runner.os }}-binaries-${{ hashFiles('**/go.sum', '.bingo/**/*.sum') }} | |
restore-keys: | | |
${{ runner.os }}-binaries- | |
- name: Format | |
run: make format | |
- name: Lint | |
run: make lint | |
test: | |
runs-on: ubuntu-latest | |
name: Run tests | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Check out code into the Go module directory. | |
uses: actions/checkout@v4 | |
- name: Install Go. | |
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Run unit tests | |
run: make test | |
test-tag-stringlabels: | |
runs-on: ubuntu-latest | |
name: Run tests --tags=stringlabels | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Check out code into the Go module directory. | |
uses: actions/checkout@v4 | |
- name: Install Go. | |
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Run unit tests | |
run: make test-stringlabels | |
fuzz: | |
runs-on: ubuntu-latest | |
name: Run fuzz | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Check out code into the Go module directory. | |
uses: actions/checkout@v4 | |
- name: Install Go. | |
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Run fuzzing | |
run: make fuzz |