refactor(lua): extract helper functions in handler for better readabi… #90
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: Candy macOS x86 | ||
| on: | ||
| push: | ||
| branches: [""] | ||
| pull_request: | ||
| branches: [""] | ||
| env: | ||
| CARGO_TERM_COLOR: always | ||
| jobs: | ||
| check: | ||
| runs-on: ["self-hosted", "macos-x86"] | ||
| steps: | ||
| - uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cargo/bin/ | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| target/ | ||
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
| - uses: actions/checkout@v4 | ||
| - name: Clippy check | ||
| run: make lint | ||
| test: | ||
| runs-on: ["self-hosted", "macos-x86"] | ||
| steps: | ||
| - uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cargo/bin/ | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| target/ | ||
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
| - uses: actions/checkout@v4 | ||
| - name: Unit test | ||
| run: make test | ||
| build: | ||
| runs-on: ["self-hosted", "macos-x86"] | ||
| steps: | ||
| - uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cargo/bin/ | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| target/ | ||
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
| - uses: actions/checkout@v4 | ||
| - name: Build release | ||
| run: make release | ||