This commit is contained in:
Daniel Arantes Loverde
2026-07-07 15:11:31 -03:00
parent 8b9ebdcb44
commit e51c99973f
293 changed files with 457 additions and 4919 deletions

45
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,45 @@
name: CI
on:
push:
branches:
- main
- master
- develop
- 'release/**'
workflow_dispatch:
jobs:
build-and-test:
name: Build and Unit Tests
runs-on:
- self-hosted
- macos
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure private dependencies (optional)
if: ${{ secrets.GIT_LOVERDE_TOKEN != '' }}
shell: bash
run: |
git config --global url."https://oauth2:${{ secrets.GIT_LOVERDE_TOKEN }}@git.loverde.com.br/".insteadOf "https://git.loverde.com.br/"
- name: Toolchain info
shell: bash
run: |
swift --version
xcodebuild -version || true
- name: Resolve packages
shell: bash
run: swift package resolve
- name: Build (with tests)
shell: bash
run: swift build --build-tests
- name: Run unit tests
shell: bash
run: swift test --parallel

View File

@@ -0,0 +1,42 @@
name: PR Validation
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
jobs:
pr-checks:
name: PR Build and Unit Tests
if: ${{ github.event.pull_request.draft == false || github.event_name == 'workflow_dispatch' }}
runs-on:
- self-hosted
- macos
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure private dependencies (optional)
if: ${{ secrets.GIT_LOVERDE_TOKEN != '' }}
shell: bash
run: |
git config --global url."https://oauth2:${{ secrets.GIT_LOVERDE_TOKEN }}@git.loverde.com.br/".insteadOf "https://git.loverde.com.br/"
- name: Toolchain info
shell: bash
run: |
swift --version
xcodebuild -version || true
- name: Resolve packages
shell: bash
run: swift package resolve
- name: Build (with tests)
shell: bash
run: swift build --build-tests
- name: Run unit tests
shell: bash
run: swift test --parallel