add micro-tests trigger
All checks were successful
lint / lint (pull_request) Successful in 46s
test / test (pull_request) Successful in 43s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-12-10 17:39:36 +03:00
parent 2cb7200467
commit 7b6aea235a
3 changed files with 18 additions and 14 deletions

View File

@ -12,18 +12,18 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
- name: checkout code
uses: actions/checkout@v4
with:
filter: 'blob:none'
- name: setup-go
- name: setup go
uses: actions/setup-go@v5
with:
cache-dependency-path: "**/*.sum"
go-version: 'stable'
- name: deps
- name: setup deps
run: go get -v ./...
- name: lint
- name: run lint
uses: https://github.com/golangci/golangci-lint-action@v6
with:
version: 'latest'

View File

@ -17,18 +17,18 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
- name: checkout code
uses: actions/checkout@v4
with:
filter: 'blob:none'
- name: setup-go
- name: setup go
uses: actions/setup-go@v5
with:
cache-dependency-path: "**/*.sum"
go-version: 'stable'
- name: deps
- name: setup deps
run: go get -v ./...
- name: test
- name: run test
env:
INTEGRATION_TESTS: yes
run: go test -mod readonly -v ./...

View File

@ -17,7 +17,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
- name: checkout code
uses: actions/checkout@v4
with:
filter: 'blob:none'
@ -28,22 +28,26 @@ jobs:
filter: 'blob:none'
repository: unistack-org/micro-tests
path: micro-tests
- name: setup-go
- name: setup go
uses: actions/setup-go@v5
with:
cache-dependency-path: "**/*.sum"
go-version: 'stable'
- name: go work
- name: setup go work
env:
GOWORK=${{ github.workspace }}/go.work
GOWORK: ${{ github.workspace }}/go.work
run: |
cd ../
go work init
ls | grep -v go | xargs go work use
- name: deps
- name: setup deps
env:
GOWORK: ${{ github.workspace }}/go.work
run: go get -v ./...
- name: test
- name: run tests
env:
INTEGRATION_TESTS: yes
GOWORK: ${{ github.workspace }}/go.work
run: |
cd micro-tests
go test -mod readonly -v ./...