Files
ozon-mock/.gitea/workflows/test.yml
Rinat 842f87f576 Initial commit: ozon-mock Go server
- Mock Ozon Seller API endpoints
- Products, Postings, Finance, Returns, Analytics
- JSON fixtures for testing
- Docker support
- Gitea Actions CI/CD
2026-07-15 16:19:24 +03:00

33 lines
595 B
YAML

name: test
on:
- push
- pull_request
jobs:
test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Download dependencies
run: go mod download
- name: Vet
run: go vet ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race ./...
- name: Build Docker image
run: |
docker build -t ozon-mock:${{ github.sha }} .
docker tag ozon-mock:${{ github.sha }} ozon-mock:latest