Repository navigation
chore(main): release 1.19.2 #636
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| unittest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Run unit tests (stdlib only) | |
| run: python -m unittest discover -s tests -v | |
| core-compatibility: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install pinned CodeBoarding release | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| requirement="$(sed -n "s/.*'\(codeboarding==[^']*\)'.*/\1/p" action.yml)" | |
| if [ -z "$requirement" ]; then | |
| echo "Could not resolve the CodeBoarding requirement from action.yml" >&2 | |
| exit 1 | |
| fi | |
| python -m pip install --disable-pip-version-check "$requirement" | |
| - name: Check the provider table against the installed release | |
| run: python -m unittest tests.test_provider_table_drift -v | |
| - name: Build side documents with the installed release | |
| run: python -m unittest tests.test_remote_features.InstalledCoreTests -v | |
| - name: Install sync artifacts with the installed CodeBoarding release | |
| shell: bash | |
| env: | |
| ACTION_PATH: ${{ github.workspace }} | |
| ANALYSIS_DIR: ${{ runner.temp }}/sync-analysis | |
| CHECKOUT_DIR: ${{ runner.temp }}/sync-checkout | |
| run: | | |
| mkdir -p "$ANALYSIS_DIR" "$CHECKOUT_DIR" | |
| printf '{"components": []}\n' > "$ANALYSIS_DIR/analysis.json" | |
| scripts/action/install-sync.sh | |
| cmp "$ANALYSIS_DIR/analysis.json" "$CHECKOUT_DIR/.codeboarding/analysis.json" | |
| # Not the committed .codeboarding/analysis.json: after a pin moves, that can still be in the | |
| # format of the release before, which the new one refuses. | |
| - name: Read and diff analyses with the installed CodeBoarding release | |
| run: python -m unittest tests.test_diff_to_mermaid.InstalledCoreTests -v | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Install pre-commit | |
| run: python -m pip install pre-commit==3.8.0 | |
| - name: Install shellcheck | |
| run: sudo apt-get update && sudo apt-get install -y shellcheck | |
| - name: Install actionlint | |
| run: go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.7 | |
| - name: Run pre-commit | |
| run: pre-commit run --all-files | |
| - name: Run actionlint | |
| run: actionlint | |
| - name: Run shellcheck | |
| run: shellcheck -x scripts/run_local.sh scripts/action/*.sh |