micro/.gitea/workflows/pipeline.yml

41 lines
815 B
YAML
Raw Normal View History

2024-12-06 01:48:15 +07:00
name: pipeline
2024-12-06 00:42:03 +07:00
on:
pull_request:
branches:
- master
- v3
2024-12-06 03:04:48 +07:00
- v4
2024-12-06 00:42:03 +07:00
jobs:
2024-12-06 02:39:08 +07:00
lint:
name: lint
2024-12-06 01:50:45 +07:00
runs-on: ubuntu-latest
2024-12-06 00:42:03 +07:00
steps:
- name: setup-go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: checkout
uses: actions/checkout@v3
- name: deps
run: go get -v -d ./...
- name: lint
uses: https://github.com/golangci/golangci-lint-action@v6
with:
2024-12-06 03:04:48 +07:00
version: v1.62.2
2024-12-06 00:42:03 +07:00
test:
2024-12-06 01:48:15 +07:00
name: test
2024-12-06 01:50:45 +07:00
runs-on: ubuntu-latest
2024-12-06 00:42:03 +07:00
steps:
2024-12-06 02:39:08 +07:00
- name: setup-go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: checkout
uses: actions/checkout@v3
- name: deps
run: go get -v -d ./...
2024-12-06 01:48:15 +07:00
- name: test
env:
INTEGRATION_TESTS: yes
run: go test -mod readonly -v ./...