Skip to content

test: update local sandbox tests for gh and ssh mounts #142

test: update local sandbox tests for gh and ssh mounts

test: update local sandbox tests for gh and ssh mounts #142

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run tests
run: go test ./cmd/cw ./internal/... -timeout 120s -count=1
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run go vet
run: go vet ./...
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build -o cw ./cmd/cw
- name: Verify binary exists
run: test -f cw
helm-lint:
name: Helm Chart Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v4
- name: Lint codewire-relay chart
run: helm lint charts/codewire-relay/ --strict
- name: Template codewire-relay chart
run: |
helm template test-relay charts/codewire-relay/ \
--set relay.baseURL=https://test.relay.example.com \
> /dev/null
relay-image-build:
name: Relay Image Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build relay image
uses: docker/build-push-action@v6
with:
context: .
push: false
load: false
platforms: linux/amd64
build-args: |
VERSION=ci