35 lines
615 B
YAML
Raw Permalink Normal View History

2024-12-09 18:35:02 +07: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 22:17:33 +07:00
- name: checkout code
uses: actions/checkout@v4
with:
filter: 'blob:none'
- name: setup go
2024-12-09 18:35:02 +07:00
uses: actions/setup-go@v5
with:
2024-12-11 22:17:33 +07:00
cache-dependency-path: "**/*.sum"
2024-12-09 18:35:02 +07:00
go-version: 'stable'
2024-12-11 22:17:33 +07:00
- name: setup deps
run: go get -v ./...
- name: run test
2024-12-09 18:35:02 +07:00
env:
INTEGRATION_TESTS: yes
run: go test -mod readonly -v ./...