refactor(api-server): Rename timestamp and results cache parameters f… #581
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: "clp-lint" | |
| on: | |
| pull_request: | |
| push: | |
| schedule: | |
| # Run daily at 00:15 UTC (the 15 is to avoid periods of high load) | |
| - cron: "15 0 * * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: "${{github.workflow}}-${{github.ref}}" | |
| # Cancel in-progress jobs for efficiency | |
| cancel-in-progress: true | |
| jobs: | |
| lint-check: | |
| name: "lint-check" | |
| strategy: | |
| matrix: | |
| os: | |
| - "macos-15" | |
| - "ubuntu-24.04" | |
| runs-on: "${{matrix.os}}" | |
| steps: | |
| - uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" | |
| with: | |
| submodules: "recursive" | |
| # Fetch all history for all branches; otherwise, `helm lint` would complain about not | |
| # finding the `origin/main` branch. | |
| fetch-depth: 0 | |
| - uses: "actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38" | |
| with: | |
| python-version: "3.11" | |
| - name: "Install task" | |
| shell: "bash" | |
| run: "npm install -g @go-task/cli@3.44.0" | |
| - name: "Install uv" | |
| shell: "bash" | |
| run: "curl --fail --location --silent --show-error https://astral.sh/uv/install.sh | sh" | |
| - if: "matrix.os == 'macos-15'" | |
| name: "Install coreutils (for md5sum)" | |
| run: "brew install coreutils" | |
| # This is a necessary dependency for the Python mariadb package which is a transitive | |
| # dependency of `lint:py-check`. | |
| - name: "Install MariaDB Connector/C" | |
| shell: "bash" | |
| run: |- | |
| case "${{ matrix.os }}" in | |
| ubuntu-24.04) | |
| sudo apt-get update | |
| sudo apt-get install -y libmariadb-dev | |
| MARIADB_CONFIG_PATH="$(command -v mariadb_config)" | |
| ;; | |
| macos-15) | |
| brew update | |
| brew install mariadb-connector-c | |
| PREFIX="$(brew --prefix mariadb-connector-c)" | |
| MARIADB_CONFIG_PATH="$PREFIX/bin/mariadb_config" | |
| ;; | |
| *) | |
| # Control flow should not reach here | |
| exit 1 | |
| ;; | |
| esac | |
| echo "MARIADB_CONFIG=$MARIADB_CONFIG_PATH" >> "$GITHUB_ENV" | |
| - name: "Lint .js files" | |
| shell: "bash" | |
| run: "task lint:check-js" | |
| - name: "Lint .py files" | |
| shell: "bash" | |
| run: "task lint:check-py" | |
| - name: "Lint .yaml files" | |
| shell: "bash" | |
| run: "task lint:check-yaml" | |
| - name: "Lint Helm charts" | |
| shell: "bash" | |
| run: "task lint:check-helm" |