Skip to content

Commit

Permalink
[GitHub Workflows] Give names to steps (#412)
Browse files Browse the repository at this point in the history
It's a lot easier to read these steps when they all have names. This should not affect operation.

Use hash pinning for actions
  • Loading branch information
mhutchinson authored Dec 10, 2024
1 parent 246624f commit 03827bf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/benchmark-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ jobs:
name: Performance regression check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Fetch Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.1.0
with:
go-version-file: go.mod

- name: Run benchmark
run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt

- name: Store benchmark result
uses: benchmark-action/[email protected]
uses: benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4
with:
tool: 'go'
output-file-path: output.txt
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.1.0
- name: Fetch repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.1.0
with:
go-version: ${{ matrix.go-version }}
- run: go test -v -race ./...

- name: Run tests
run: go test -v -race ./...

test-mysql:
env:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.1.0
- name: Fetch repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.1.0
with:
go-version-file: go.mod
- name: golangci-lint
Expand Down

0 comments on commit 03827bf

Please sign in to comment.