fix: bump CLI #52
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: Plugin Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install bats-core | |
| run: | | |
| if [ "$RUNNER_OS" = "Linux" ]; then | |
| sudo apt-get update -qq && sudo apt-get install -y -qq bats | |
| else | |
| brew install bats-core | |
| fi | |
| - name: Install shellcheck | |
| run: | | |
| if [ "$RUNNER_OS" = "Linux" ]; then | |
| sudo apt-get install -y -qq shellcheck | |
| else | |
| brew install shellcheck | |
| fi | |
| - name: Check JSON configs | |
| run: make check-json | |
| - name: Check script permissions | |
| run: make check-perms | |
| - name: ShellCheck | |
| run: make lint | |
| - name: Warm archcore CLI cache | |
| # The cli-contract structure test calls `bin/archcore --help` with | |
| # ARCHCORE_SKIP_DOWNLOAD=1 to verify the hardcoded subcommand allowlist | |
| # matches the live CLI. In CI it refuses to skip, so we must pre-cache | |
| # the binary by running the launcher once (download enabled) here. | |
| run: ./bin/archcore --help >/dev/null | |
| - name: Run tests | |
| run: make test |