micro-tests #372

Merged
vtolstov merged 24 commits from micro-tests into v3 2024-12-10 23:45:54 +03:00
3 changed files with 18 additions and 14 deletions
Showing only changes of commit 7b6aea235a - Show all commits

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 ./...