Skip to content

chore: Add script to test sub project and add more unit test for nacos v2 #107

chore: Add script to test sub project and add more unit test for nacos v2

chore: Add script to test sub project and add more unit test for nacos v2 #107

Workflow file for this run

name: Push Check
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
services:
nacos:
image: 'nacos/nacos-server:2.0.3'
ports:
- '8848:8848'
- '9848:9848'
env:
MODE: standalone
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Check License Header
uses: apache/skywalking-eyes/header@v0.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: typos-action
uses: crate-ci/typos@v1.2.1
- name: Benchmark
run: go test -bench=. -benchmem -run=none ./...
- name: Unit Test
run: make test
env:
serverAddr: 127.0.0.1
serverPort: 8848
namespace: public