fix(load): report the actual object-load status #461
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: Zsh | |
| on: | |
| push: | |
| tags: ["v*.*.*"] | |
| branches: | |
| - main | |
| - next | |
| paths: | |
| - "zi.zsh" | |
| - "lib/**" | |
| - "tests/archive-extraction.zsh" | |
| - "tests/completion-refresh.zsh" | |
| - "tests/hook-ownership.zsh" | |
| - "tests/load-object-status.zsh" | |
| - "tests/message-formatting.zsh" | |
| - "tests/path-resolution.zsh" | |
| - "tests/parallel-update.zsh" | |
| - "tests/plugin-autoload-fpath-scope.zsh" | |
| - "tests/plugin-autoload-ice.zsh" | |
| - "tests/nested-load-state.zsh" | |
| - "tests/plugin-autoload-ownership.zsh" | |
| - "tests/plugin-standard-callbacks.zsh" | |
| - "tests/scheduler-idle.zsh" | |
| - "tests/fixtures/plugin-standard-callbacks/**" | |
| - "tests/self-update-reload.zsh" | |
| - "tests/snippet-directory-mirror.zsh" | |
| - "tests/subst-nesting.zsh" | |
| - "tests/version-reporting.zsh" | |
| pull_request: | |
| paths: | |
| - "zi.zsh" | |
| - "lib/**" | |
| - "tests/archive-extraction.zsh" | |
| - "tests/completion-refresh.zsh" | |
| - "tests/hook-ownership.zsh" | |
| - "tests/load-object-status.zsh" | |
| - "tests/message-formatting.zsh" | |
| - "tests/path-resolution.zsh" | |
| - "tests/parallel-update.zsh" | |
| - "tests/plugin-autoload-fpath-scope.zsh" | |
| - "tests/plugin-autoload-ice.zsh" | |
| - "tests/nested-load-state.zsh" | |
| - "tests/plugin-autoload-ownership.zsh" | |
| - "tests/plugin-standard-callbacks.zsh" | |
| - "tests/scheduler-idle.zsh" | |
| - "tests/fixtures/plugin-standard-callbacks/**" | |
| - "tests/self-update-reload.zsh" | |
| - "tests/snippet-directory-mirror.zsh" | |
| - "tests/subst-nesting.zsh" | |
| - "tests/version-reporting.zsh" | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| zsh-matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: "Set matrix output" | |
| id: set-matrix | |
| run: | | |
| MATRIX="$(find . -type d -name 'doc' -prune -o -type f \( -iname '*.zsh' -o -iname '_zi' -o -path './lib/zcompile' -o -path './lib/templates/example-script' \) -print | jq -ncR '{"include": [{"file": inputs}]}')" | |
| echo "MATRIX=${MATRIX}" >&2 | |
| echo "matrix=${MATRIX}" >> "$GITHUB_OUTPUT" | |
| zsh-n: | |
| runs-on: ubuntu-latest | |
| needs: zsh-matrix | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJSON(needs.zsh-matrix.outputs.matrix) }} | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: "⚡ Install dependencies" | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: "⚡ zsh -n: ${{ matrix.file }}" | |
| env: | |
| ZSH_FILE: ${{ matrix.file }} | |
| run: | | |
| zsh -n "${ZSH_FILE}" | |
| - name: "⚡ zcompile ${{ matrix.file }}" | |
| env: | |
| ZSH_FILE: ${{ matrix.file }} | |
| run: | | |
| zsh -fc "zcompile ${ZSH_FILE}"; rc=$? | |
| ls -al "${ZSH_FILE}.zwc"; exit "$rc" | |
| version-reporting: | |
| name: Version reporting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test version reporting | |
| run: zsh tests/version-reporting.zsh | |
| path-resolution: | |
| name: Path resolution | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test path resolution | |
| run: zsh -f tests/path-resolution.zsh | |
| parallel-update: | |
| name: Parallel Update | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test parallel update | |
| run: zsh -f tests/parallel-update.zsh | |
| plugin-autoload-fpath-scope: | |
| name: Plugin Autoload Fpath Scope | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test plugin autoload fpath scope | |
| run: zsh -f tests/plugin-autoload-fpath-scope.zsh | |
| plugin-autoload-ice: | |
| name: Plugin Autoload Ice | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test autoload ice forms | |
| run: zsh -f tests/plugin-autoload-ice.zsh | |
| load-object-status: | |
| name: Load Object Status | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test load object status | |
| run: zsh -f tests/load-object-status.zsh | |
| nested-load-state: | |
| name: Nested Load State | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test nested load state | |
| run: zsh -f tests/nested-load-state.zsh | |
| plugin-autoload-ownership: | |
| name: Plugin Autoload Ownership | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test plugin autoload ownership | |
| run: zsh -f tests/plugin-autoload-ownership.zsh | |
| plugin-standard-callbacks: | |
| name: Plugin Standard Callbacks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test plugin standard callbacks | |
| run: zsh -f tests/plugin-standard-callbacks.zsh | |
| self-update-reload: | |
| name: Self-update reload | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test self-update reload | |
| run: zsh -f tests/self-update-reload.zsh | |
| scheduler-idle: | |
| name: Scheduler idle | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test scheduler idle behavior | |
| run: zsh -f tests/scheduler-idle.zsh | |
| archive-extraction: | |
| name: Archive extraction | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh and archive tools | |
| run: sudo apt update && sudo apt-get install -yq zsh zip unzip | |
| - name: Test archive extraction | |
| run: zsh tests/archive-extraction.zsh | |
| completion-refresh: | |
| name: Completion refresh | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test completion refresh | |
| run: zsh tests/completion-refresh.zsh | |
| hook-ownership: | |
| name: Hook ownership | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test hook ownership | |
| run: zsh -f tests/hook-ownership.zsh | |
| message-formatting: | |
| name: Message formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test message formatting | |
| run: zsh -f tests/message-formatting.zsh | |
| subst-nesting: | |
| name: Subst Nesting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test substitution nesting | |
| run: zsh -f tests/subst-nesting.zsh | |
| snippet-directory-mirror: | |
| name: Snippet directory mirror | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Zsh | |
| run: sudo apt update && sudo apt-get install -yq zsh | |
| - name: Test snippet directory mirror | |
| run: zsh -f tests/snippet-directory-mirror.zsh |