Use goakt testing framework #1568
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Lint | Test | Build | |
on: | |
pull_request: | |
branches: [ "main" ] | |
env: | |
GO_VER: '1.23.*' | |
jobs: | |
lint: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v4 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VER }} | |
cache: false | |
- | |
name: golangci-lint | |
uses: golangci/golangci-lint-action@v6.1.0 | |
with: | |
version: v1.61.0 | |
test: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v4 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VER }} | |
- | |
name: Run test suite | node | |
run: | | |
go test -v github.com/synadia-io/nex/test | |
- | |
name: Run test suite | CLI | |
working-directory: ./cmd/nex | |
run: | | |
go test -v ./... | |
- | |
name: Run test suite (rootfs | linux only) | |
if: runner.os == 'Linux' | |
working-directory: ./cmd/nex | |
run: | | |
sudo go test -v ./... -run TestRootFsSimple | |
build: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VER }} | |
- | |
name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: build --clean --snapshot | |