2023-03-19 14:26:03 +03:00
|
|
|
name: pr
|
2020-08-19 16:11:03 +03:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-10-02 18:42:20 +03:00
|
|
|
- v3
|
2020-02-24 14:11:17 +00:00
|
|
|
jobs:
|
2020-08-19 16:11:03 +03:00
|
|
|
test:
|
|
|
|
name: test
|
2020-02-24 14:11:17 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-03-19 16:11:52 +03:00
|
|
|
- name: checkout
|
2024-02-29 23:23:51 +03:00
|
|
|
uses: actions/checkout@v3
|
2023-03-19 16:08:51 +03:00
|
|
|
- name: setup-go
|
2024-12-05 23:55:31 +07:00
|
|
|
uses: actions/setup-go@v5
|
2024-12-05 23:59:15 +07:00
|
|
|
with:
|
|
|
|
go-version: 'stable'
|
2022-03-05 19:07:51 +03:00
|
|
|
- name: deps
|
2020-08-19 16:11:03 +03:00
|
|
|
run: go get -v -t -d ./...
|
2024-12-05 23:55:31 +07:00
|
|
|
- name: lint
|
|
|
|
uses: https://github.com/golangci/golangci-lint-action@v6
|
|
|
|
with:
|
|
|
|
version: v1.58
|
2024-12-06 00:42:03 +07:00
|
|
|
# - name: test
|
|
|
|
# env:
|
|
|
|
# INTEGRATION_TESTS: yes
|
|
|
|
# run: go test -mod readonly -v ./...
|