Files
tunnel-please/.gitea/workflows/testing.yml
bagas 07053610b5
SonarQube Scan / SonarQube Trigger (push) Successful in 4m14s
Docker Build and Push / Build and Push Docker Image (push) Has been cancelled
Docker Build and Push / Run Tests (push) Has been cancelled
ci: refactor workflows for SonarQube, tag-only Docker builds, and global testing
- Run SonarQube scans only on main, staging, and feat/* branches
- Build and push Docker images only on semantic version tags
- Add test job that runs on all events
2026-01-28 01:00:29 +07:00

36 lines
767 B
YAML

name: Tests
on:
pull_request:
types: [opened, synchronize, reopened]
issue_comment:
types: [created]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request' ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request != null &&
contains(github.event.comment.body, '/retest'))
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
cache: false
- name: Install dependencies
run: go mod download
- name: Run go vet
run: go vet ./...
- name: Run tests
run: go test -v -p 4 ./...