mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
* api-spec: move the api-spec to root and init go.mod * go mod tidy * move buf files in the root as well * gh action for api-spec changes only * gh action for api-spec on push and pr
63 lines
1.4 KiB
YAML
Executable File
63 lines
1.4 KiB
YAML
Executable File
name: ci_unit
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "server/**"
|
|
- "pkg/client-sdk/**"
|
|
branches: [master]
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "server/**"
|
|
- "pkg/client-sdk/**"
|
|
|
|
jobs:
|
|
test-server:
|
|
name: server unit tests
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./server
|
|
steps:
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ">1.17.2"
|
|
- uses: actions/checkout@v3
|
|
- name: check linting
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.54
|
|
working-directory: ./server
|
|
- name: check code integrity
|
|
uses: securego/gosec@master
|
|
with:
|
|
args: '-severity high -quiet ./...'
|
|
- run: go get -v -t -d ./...
|
|
- name: unit testing
|
|
run: make test
|
|
|
|
test-sdk:
|
|
name: sdk unit tests
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./pkg/client-sdk
|
|
steps:
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ">1.17.2"
|
|
- uses: actions/checkout@v3
|
|
- name: check linting
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.54
|
|
working-directory: ./pkg/client-sdk
|
|
- name: check code integrity
|
|
uses: securego/gosec@master
|
|
with:
|
|
args: '-severity high -quiet ./...'
|
|
- run: go get -v -t -d ./...
|
|
- name: unit testing
|
|
run: make test |