fix(deps): update all dependencies #1928
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
| # Copyright 2025 Canonical Ltd. | |
| # See LICENSE file for licensing details. | |
| name: Workflow Unit Tests | |
| on: | |
| pull_request: | |
| jobs: | |
| simple: | |
| uses: ./.github/workflows/test.yaml | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| secrets: inherit | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - '3.10' | |
| - '3.12' | |
| with: | |
| working-directory: "tests/workflows/integration/test-upload-charm/" | |
| self-hosted-runner: false | |
| python-version: ${{ matrix.python-version }} | |
| vale-files: '["docs/**/*.md", "README.md"]' | |
| vale-style-check: true | |
| with-uv: true | |
| simple-self-hosted: | |
| uses: ./.github/workflows/test.yaml | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| secrets: inherit | |
| with: | |
| working-directory: "tests/workflows/integration/test-upload-charm/" | |
| self-hosted-runner: true | |
| self-hosted-runner-label: "edge" | |
| vale-files: '["docs/**/*.md", "README.md"]' | |
| vale-style-check: true | |
| with-uv: true | |
| check-dist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .node-version | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run lint | |
| run: npm run lint | |
| - name: Build dist/ directory | |
| run: npm run package | |
| - name: Compare expected and actual directories | |
| id: diff | |
| run: | | |
| if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then | |
| echo "Detected uncommitted changes after build. See status below:" | |
| git diff --ignore-space-at-eol --text dist/ | |
| exit 1 | |
| fi | |
| check: | |
| runs-on: ubuntu-latest | |
| if: always() && !cancelled() | |
| timeout-minutes: 5 | |
| needs: | |
| - simple | |
| - simple-self-hosted | |
| - check-dist | |
| steps: | |
| - run: | | |
| [ '${{ needs.simple.result }}' = 'success' ] || (echo simple failed && false) | |
| [ '${{ needs.simple-self-hosted.result }}' = 'success' ] || (echo simple-self-hosted failed && false) | |
| [ '${{ needs.check-dist.result }}' = 'success' ] || (echo check-dist failed && false) | |
| test-comment: | |
| name: Comment on the pull request | |
| uses: ./.github/workflows/comment.yaml | |
| permissions: | |
| pull-requests: write | |
| actions: read | |
| if: always() && !cancelled() | |
| needs: | |
| - simple | |
| - simple-self-hosted | |
| - check-dist |