Skip to content

Merge pull request #1 from Cod-e-Codes/feature/transcription #35

Merge pull request #1 from Cod-e-Codes/feature/transcription

Merge pull request #1 from Cod-e-Codes/feature/transcription #35

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@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.25'
- name: Install PortAudio dependencies
run: |
sudo apt-get update
sudo apt-get install -y libportaudio2 portaudio19-dev
- name: Download dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Run tests
run: go test -v ./...
env:
GOOS: linux
CGO_ENABLED: 1
- name: Run linter
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run
- name: Check formatting
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "The following files are not formatted:"
gofmt -s -l .
exit 1
fi
- name: Build
run: go build -v ./...
env:
GOOS: linux
CGO_ENABLED: 1