2024-12-10 21:11:27 +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:
|
2024-12-11 00:13:29 +03:00
|
|
|
- name: checkout code
|
2024-12-10 21:11:27 +03:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
filter: 'blob:none'
|
2024-12-11 00:13:29 +03:00
|
|
|
- name: setup go
|
2024-12-10 21:11:27 +03:00
|
|
|
uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-12-11 00:13:29 +03:00
|
|
|
cache-dependency-path: "**/*.sum"
|
2024-12-10 21:11:27 +03:00
|
|
|
go-version: 'stable'
|
2024-12-11 00:13:29 +03:00
|
|
|
- name: setup deps
|
|
|
|
run: go get -v ./...
|
|
|
|
- name: run test
|
2024-12-10 21:11:27 +03:00
|
|
|
env:
|
|
|
|
INTEGRATION_TESTS: yes
|
|
|
|
run: go test -mod readonly -v ./...
|