Skip to content

chore(deps): bump golang.org/x/crypto from 0.52.0 to 0.57.0 #79

chore(deps): bump golang.org/x/crypto from 0.52.0 to 0.57.0

chore(deps): bump golang.org/x/crypto from 0.52.0 to 0.57.0 #79

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
pull-requests: write
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
cache: true
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev pkg-config
- name: Check code formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "The following files are not properly formatted:"
gofmt -l .
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Run unit tests with race detector and coverage
run: go test -v -race -coverprofile=coverage.out ./...
- name: Compute coverage delta & publish motivational report
if: runner.os == 'Linux'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EVENT_NAME: ${{ github.event_name }}
BASE_REF: ${{ github.base_ref }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
chmod +x .github/scripts/coverage_report.sh
./.github/scripts/coverage_report.sh
cross-compile:
name: Cross Compile Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
cache: true
- name: Verify macOS ARM64 build
env:
CGO_ENABLED: "0"
GOOS: "darwin"
GOARCH: "arm64"
run: go build -o /dev/null main.go
- name: Verify macOS AMD64 build
env:
CGO_ENABLED: "0"
GOOS: "darwin"
GOARCH: "amd64"
run: go build -o /dev/null main.go
- name: Verify Linux AMD64 build
env:
CGO_ENABLED: "0"
GOOS: "linux"
GOARCH: "amd64"
run: go build -o /dev/null main.go
- name: Verify Linux ARM64 build
env:
CGO_ENABLED: "0"
GOOS: "linux"
GOARCH: "arm64"
run: go build -o /dev/null main.go
- name: Verify Windows AMD64 build
env:
CGO_ENABLED: "0"
GOOS: "windows"
GOARCH: "amd64"
run: go build -o /dev/null main.go
- name: Verify Windows ARM64 build
env:
CGO_ENABLED: "0"
GOOS: "windows"
GOARCH: "arm64"
run: go build -o /dev/null main.go