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: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout - name: checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
filter: 'blob:none' filter: 'blob:none'
- name: setup-go - name: setup go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
cache-dependency-path: "**/*.sum" cache-dependency-path: "**/*.sum"
go-version: 'stable' go-version: 'stable'
- name: deps - name: setup deps
run: go get -v ./... run: go get -v ./...
- name: lint - name: run lint
uses: https://github.com/golangci/golangci-lint-action@v6 uses: https://github.com/golangci/golangci-lint-action@v6
with: with:
version: 'latest' version: 'latest'

View File

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

View File

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