fix: Fix workspace graph caching. Avoid unnecessary plugin calls. #6654
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Moon | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| paths: | |
| - .cargo/config.toml | |
| - .github/workflows/moon.yml | |
| - .moon/* | |
| - crates/** | |
| - legacy/** | |
| - packages/** | |
| - website/** | |
| - package.json | |
| - yarn.lock | |
| - Cargo.lock | |
| - Cargo.toml | |
| - rust-toolchain.toml | |
| env: | |
| # For setup-rust | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| - uses: voidzero-dev/setup-vp@v1 | |
| - uses: arduino/setup-protoc@v3 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: moonrepo/setup-rust@v1 | |
| with: | |
| cache-base: '^(master|develop-)' | |
| - run: cargo run -- --color --log debug ci --base ${{ github.base_ref || 'master' }} | |
| env: | |
| DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }} | |
| MOON_DEBUG_DAEMON: true | |
| MOON_DEBUG_REMOTE: true | |
| MOON_DEBUG_PROCESS_ENV: true | |
| RUST_BACKTRACE: '1' | |
| - run: cat .moon/cache/daemon/server.log | |
| if: failure() | |
| - uses: moonrepo/run-report-action@v1 | |
| if: success() || failure() | |
| with: | |
| access-token: ${{ secrets.GITHUB_TOKEN }} | |
| matrix: ${{ toJSON(matrix) }} | |
| docker: | |
| if: ${{ github.repository == 'moonrepo/moon' }} | |
| name: Docker | |
| # Older required for Docker libc | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: depot/setup-action@v1 | |
| - uses: arduino/setup-protoc@v3 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: moonrepo/setup-rust@v1 | |
| with: | |
| cache: false | |
| - run: cargo build | |
| - run: ./target/debug/moon --version | |
| # Non-staged | |
| - run: ./target/debug/moon docker scaffold website --log trace | |
| env: | |
| MOON_SKIP_SETUP_TOOLCHAIN: '*' | |
| - uses: depot/build-push-action@v1 | |
| with: | |
| context: . | |
| push: false | |
| file: ./scripts/docker/Dockerfile | |
| # Staged | |
| - uses: depot/build-push-action@v1 | |
| with: | |
| context: . | |
| push: false | |
| file: ./scripts/docker/Dockerfile.staged |