Skip to content

Merge pull request #453 from smirzaei/master #289

Merge pull request #453 from smirzaei/master

Merge pull request #453 from smirzaei/master #289

Workflow file for this run

name: run tests
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
GO_VERSION: '1.20'
jobs:
unit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "^${{ env.GO_VERSION }}"
- name: Test
shell: bash
run: |
go test -v -race ./...
system-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "^${{ env.GO_VERSION }}"
- name: Services
shell: bash
run: |
sudo apt update -y && sudo apt install -y netcat
cd examples && make start && cd ..
- name: Test
shell: bash
run: |
GOKA_SYSTEMTEST=y go test -v github.com/lovoo/goka/systemtest