Skip to content
edgesync Artifact [c91ea2470c]
Login

Artifact [c91ea2470c]

Artifact c91ea2470ce2f0278ca27500ad7839a8529d3c77206e9ff182c8540255d1f44a:


name: Tests

on:
  push:
    branches: [main]
    paths-ignore:
      - '**.md'
      - 'docs/**'
      - 'wrangler.jsonc'
      - 'LICENSE'
  pull_request:
    paths-ignore:
      - '**.md'
      - 'docs/**'
      - 'wrangler.jsonc'
      - 'LICENSE'

jobs:
  unit:
    name: Unit Tests
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-go@v6
        with:
          go-version-file: go.mod
      - name: leaf
        run: cd leaf && go test ./... -short -count=1
      - name: bridge
        run: cd bridge && go test ./... -short -count=1

  sim:
    name: Sim & Interop
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-go@v6
        with:
          go-version-file: go.mod
      - name: Install Fossil
        run: sudo apt-get update && sudo apt-get install -y fossil
      - name: Sim integration tests
        run: cd sim && go test . -run 'TestHubLeafE2E|TestAgentNew_|TestHubNATSFossilSync_' -count=1 -timeout=120s

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-go@v6
        with:
          go-version-file: go.mod
      - name: Build all binaries
        run: make build
      - name: Vet
        run: make vet