Switch to gitea actions
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 10m35s
Unit Tests / unit-tests (pull_request) Successful in 10m43s

This commit is contained in:
Tanishq Dubey 2025-05-16 20:06:43 -04:00
parent fc799ee30e
commit 5e6e101555
No known key found for this signature in database
GPG Key ID: CFC1931B84DFC3F9
2 changed files with 35 additions and 6 deletions

View File

@ -0,0 +1,28 @@
name: Integration Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Install dependencies
run: go mod download
- name: Run integration tests
run: go test -count=1 -run Integration ./... -v -coverprofile=coverage.out
- name: Print coverage report
run: go tool cover -func=coverage.out
continue-on-error: true

View File

@ -1,4 +1,4 @@
name: Test
name: Unit Tests
on:
push:
@ -7,7 +7,7 @@ on:
branches: [ main ]
jobs:
test:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -15,13 +15,14 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.24'
- name: Install dependencies
run: go mod download
- name: Run unit tests
run: go test -v ./internal/... -short
run: go test -v ./... -coverprofile=coverage.out
- name: Run integration tests
run: go test -v ./internal/... -run Integration
- name: Print coverage report
run: go tool cover -func=coverage.out
continue-on-error: true