mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 10:33:20 +00:00
f2a23c962a
ci: cache frontend build across jobs ci: ensure caches are saved with zstd work around https://github.com/actions/cache/issues/1169 ci: require unit tests for remote cacher - prevents unnecessary runs in case the unit tests already fail - starts the integration tests about 2 minutes earlier - should give some overall speedup to the CI run, because the long integration tests are run and finish earlier, and the cacher tests should still usually finish in time - does not save any computing resources, just provides quicker results when runners are not under high load
13 lines
455 B
YAML
13 lines
455 B
YAML
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: setup user and permissions
|
|
run: |
|
|
git config --add safe.directory '*'
|
|
# ignore if the user already exists (like with the playwright image)
|
|
adduser --quiet --comment forgejo --disabled-password forgejo || true
|
|
chown -R forgejo:forgejo .
|
|
- uses: https://codeberg.org/fnetx/setup-cache-go@b2214eaf6fb44c7e8512c0f462a2c3ec31f86a73
|
|
with:
|
|
username: forgejo
|