mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
Replace the reusable workflow with .github/actions/build plus a nested nix setup action, invoked as a step. CI and the next build stay a single job (no extra runner or Nix restore); the release keeps its build/publish split for credential isolation.
32 lines
760 B
YAML
32 lines
760 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-26.04
|
|
timeout-minutes: 90
|
|
permissions:
|
|
contents: read
|
|
env:
|
|
GRADLE_OPTS: -Dorg.gradle.daemon=false
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- uses: ./.github/actions/build
|
|
with:
|
|
gradle-args: ":app:ktlintCheck :app:lintDebug :app:testDebugUnitTest --no-configuration-cache --console=plain --no-daemon"
|
|
- uses: actions/cache@v6
|
|
with:
|
|
path: .integration/music
|
|
key: integration-music-v1
|
|
- run: nix develop .#integration --command nu tools/integration-test.nu
|