Skip to content

[SDTEST-2812] Sanity checks for Ruby test optimization setup #110

[SDTEST-2812] Sanity checks for Ruby test optimization setup

[SDTEST-2812] Sanity checks for Ruby test optimization setup #110

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@faf52423ec0d44c58f68e83b614bfcd99dded66f # v5
with:
go-version: "1.24.x"
- name: Cache Go modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-1.24-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-1.24-
- name: Download dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Format check
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "The following files are not formatted correctly:"
gofmt -s -l .
exit 1
fi
- name: Vet
run: go vet ./...
- name: Run tests
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@faf52423ec0d44c58f68e83b614bfcd99dded66f # v5
with:
go-version: "1.24.x"
- name: golangci-lint
uses: golangci/golangci-lint-action@14973f18c82b6d66679563f71666ccee11907cb2 # v6
with:
version: latest
args: --timeout=5m