update sdk version #123
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
name: Push Check | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go: [ 1.20.x ] | |
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@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Module cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/go-build | |
~/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: Build | |
run: go build ./... | |
- 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 | |