2024-12-10 15:58:29 +03:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, reopened, synchronize]
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v3
|
|
|
|
- v4
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v3
|
|
|
|
- v4
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
filter: 'blob:none'
|
|
|
|
- name: checkout tests
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
2024-12-10 16:02:43 +03:00
|
|
|
ref: master
|
2024-12-10 15:58:29 +03:00
|
|
|
filter: 'blob:none'
|
|
|
|
repository: unistack-org/micro-tests
|
|
|
|
path: micro-tests
|
|
|
|
- name: setup-go
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-12-10 16:46:40 +03:00
|
|
|
cache-dependency-path: "**/*.sum"
|
2024-12-10 15:58:29 +03:00
|
|
|
go-version: 'stable'
|
|
|
|
- name: deps
|
2024-12-10 16:46:40 +03:00
|
|
|
run: go get -v ./...
|
2024-12-10 15:58:29 +03:00
|
|
|
- name: workflow
|
2024-12-10 16:16:16 +03:00
|
|
|
run: |
|
|
|
|
cd ../
|
|
|
|
go work init
|
2024-12-10 16:46:40 +03:00
|
|
|
go work use $(ls | grep -v go)
|
2024-12-10 15:58:29 +03:00
|
|
|
- name: test
|
|
|
|
env:
|
|
|
|
INTEGRATION_TESTS: yes
|
2024-12-10 16:16:16 +03:00
|
|
|
run: |
|
|
|
|
cd micro-tests
|
2024-12-10 16:52:15 +03:00
|
|
|
cat ../go.work
|
2024-12-10 16:16:16 +03:00
|
|
|
go test -mod readonly -v ./...
|