Skip to content

feat: enhance Windows UART compatibility with platform-specific handling #66

feat: enhance Windows UART compatibility with platform-specific handling

feat: enhance Windows UART compatibility with platform-specific handling #66

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
go-version: ['1.24.x']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
${{ runner.os }}-go-
continue-on-error: true
- name: Download dependencies
run: go mod download
- name: Run unit tests
run: go test -v -race -timeout=10m ./...
integration:
strategy:
matrix:
go-version: ['1.24.x']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
${{ runner.os }}-go-
continue-on-error: true
- name: Download dependencies
run: go mod download
- name: Run integration tests
run: go test -v -race -timeout=15m -parallel=4 -tags=integration ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.x'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: latest
args: --timeout 5m
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.x'
- name: Build
run: go build -v ./...
- name: Build examples
run: |
for dir in examples/*/; do
if [ -f "$dir/main.go" ]; then
echo "Building $dir"
(cd "$dir" && go build -v .)
fi
done