Switch to gitea actions
This commit is contained in:
parent
fc799ee30e
commit
5e6e101555
28
.gitea/workflows/test_integration.yml
Normal file
28
.gitea/workflows/test_integration.yml
Normal 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
|
@ -1,4 +1,4 @@
|
|||||||
name: Test
|
name: Unit Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -7,7 +7,7 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -15,13 +15,14 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.21'
|
go-version: '1.24'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: go test -v ./internal/... -short
|
run: go test -v ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Print coverage report
|
||||||
run: go test -v ./internal/... -run Integration
|
run: go tool cover -func=coverage.out
|
||||||
|
continue-on-error: true
|
Loading…
x
Reference in New Issue
Block a user