Skip to content

Bump golang.org/x/sys from 0.40.0 to 0.41.0 #548

Bump golang.org/x/sys from 0.40.0 to 0.41.0

Bump golang.org/x/sys from 0.40.0 to 0.41.0 #548

Workflow file for this run

---
name: tests
on:
push:
permissions:
contents: read
packages: read
jobs:
build-test:
name: Build and test
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Check Go formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "The following files are not formatted:"
echo "$unformatted"
echo ""
echo "Please run 'make fmt' to format the code"
exit 1
fi
- name: Run GolangCI linter
uses: golangci/golangci-lint-action@v9
with:
version: v2.1.6
- name: Start Workbench
id: start-workbench
uses: scality/workbench@v0.12.0
- name: Wait for ClickHouse setup and fix permissions
run: |
# Wait for workbench setup container to complete
timeout 60 bash -c 'until [ "$(docker inspect -f {{.State.Status}} workbench-setup-clickhouse 2>/dev/null)" = "exited" ]; do sleep 1; done'
# Wait for ClickHouse shards to be ready (workbench uses port 9002 internally)
for i in {1..30}; do
if docker exec workbench-clickhouse-shard-1 clickhouse-client --host localhost --port 9002 --query "SELECT 1" >/dev/null 2>&1; then
break
fi
sleep 2
done
for i in {1..30}; do
if docker exec workbench-clickhouse-shard-2 clickhouse-client --host localhost --port 9002 --query "SELECT 1" >/dev/null 2>&1; then
break
fi
sleep 2
done
- name: Run unit tests
run: make test-coverage
- name: Generate coverage HTML report
run: make coverage-report
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
- name: Upload artifacts
uses: actions/upload-artifact@v6
with:
name: log-courier
path: ./bin/log-courier
- name: Stop Workbench
if: (success() || failure()) && steps.start-workbench.outcome != 'skipped'
run: |
workbench logs
workbench down