mirror of
https://github.com/zitadel/zitadel.git
synced 2026-11-02 09:49:11 -06:00
# Which Problems Are Solved
Unit tests can pass again.
# How the Problems Are Solved
As we don't want to waist too much time on this, we just use runners
with bigger disks for now.
Probably we anyway use distributed task execution with Nx Cloud instead
of GitHub runners soon.
# Additional Context
Reverts zitadel/zitadel#9643
Reported internally
https://zitadel.slack.com/archives/C081HPPECKU/p1756470129164019
Failing Actions:
-
https://github.com/zitadel/zitadel/actions/runs/17323362823/job/49181555445?pr=10564
-
https://github.com/zitadel/zitadel/actions/runs/17435007449/job/49502354609?pr=10560#step:7:227
(cherry picked from commit c43164d7e2)
73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
name: Unit test core
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
core_cache_key:
|
|
required: true
|
|
type: string
|
|
core_cache_path:
|
|
required: true
|
|
type: string
|
|
crdb_version:
|
|
required: false
|
|
type: string
|
|
secrets:
|
|
CODECOV_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
test:
|
|
runs-on:
|
|
group: zitadel-public
|
|
steps:
|
|
-
|
|
uses: actions/checkout@v3
|
|
-
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
-
|
|
uses: actions/cache/restore@v4
|
|
timeout-minutes: 1
|
|
name: restore core
|
|
id: restore-core
|
|
with:
|
|
path: ${{ inputs.core_cache_path }}
|
|
key: ${{ inputs.core_cache_key }}
|
|
fail-on-cache-miss: true
|
|
-
|
|
id: go-cache-path
|
|
name: set cache path
|
|
run: echo "GO_CACHE_PATH=$(go env GOCACHE)" >> $GITHUB_OUTPUT
|
|
-
|
|
uses: actions/cache/restore@v4
|
|
id: cache
|
|
timeout-minutes: 1
|
|
continue-on-error: true
|
|
name: restore previous results
|
|
with:
|
|
key: unit-test-${{ inputs.core_cache_key }}
|
|
restore-keys: |
|
|
unit-test-core-
|
|
path: ${{ steps.go-cache-path.outputs.GO_CACHE_PATH }}
|
|
-
|
|
name: test
|
|
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
run: make core_unit_test
|
|
-
|
|
name: publish coverage
|
|
uses: codecov/codecov-action@v4.3.0
|
|
with:
|
|
file: profile.cov
|
|
name: core-unit-tests
|
|
flags: core-unit-tests
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
-
|
|
uses: actions/cache/save@v4
|
|
name: cache results
|
|
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
with:
|
|
key: unit-test-${{ inputs.core_cache_key }}
|
|
path: ${{ steps.go-cache-path.outputs.GO_CACHE_PATH }}
|
|
|