diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f29dbfcb..21cf982d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: uses: actions/checkout@v4 - name: Install python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.DEFAULT_PYTHON_VERSION }} - @@ -56,7 +56,7 @@ jobs: - name: Set up Python id: setup-python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.DEFAULT_PYTHON_VERSION }} cache: "pipenv" @@ -87,7 +87,7 @@ jobs: pipenv --python ${{ steps.setup-python.outputs.python-version }} run mkdocs gh-deploy --force --no-history - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: documentation path: site/ @@ -114,7 +114,7 @@ jobs: - name: Set up Python id: setup-python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "${{ matrix.python-version }}" cache: "pipenv" @@ -155,7 +155,7 @@ jobs: - name: Upload coverage if: ${{ matrix.python-version == env.DEFAULT_PYTHON_VERSION }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: backend-coverage-report path: src/coverage.xml @@ -238,7 +238,7 @@ jobs: - name: Upload Jest coverage if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: jest-coverage-report-${{ matrix.shard-index }} path: | @@ -253,9 +253,9 @@ jobs: - name: Upload Playwright test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: playwright-report + name: playwright-report-${{ matrix.shard-index }} path: src-ui/playwright-report retention-days: 7 @@ -269,10 +269,18 @@ jobs: - uses: actions/checkout@v4 - - name: Download frontend coverage - uses: actions/download-artifact@v3 + name: Download frontend jest coverage + uses: actions/download-artifact@v4 with: path: src-ui/coverage/ + pattern: jest-coverage-report-* + - + name: Download frontend playwright coverage + uses: actions/download-artifact@v4 + with: + path: src-ui/coverage/ + pattern: playwright-report-* + merge-multiple: true - name: Upload frontend coverage to Codecov uses: codecov/codecov-action@v3 @@ -285,7 +293,7 @@ jobs: files: '!coverage.xml' - name: Download backend coverage - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: backend-coverage-report path: src/ @@ -416,7 +424,7 @@ jobs: docker cp frontend-extract:/usr/src/paperless/src/documents/static/frontend src/documents/static/frontend/ - name: Upload frontend artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: frontend-compiled path: src/documents/static/frontend/ @@ -435,7 +443,7 @@ jobs: - name: Set up Python id: setup-python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.DEFAULT_PYTHON_VERSION }} cache: "pipenv" @@ -461,13 +469,13 @@ jobs: sudo apt-get install -qq --no-install-recommends gettext liblept5 - name: Download frontend artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: frontend-compiled path: src/documents/static/frontend/ - name: Download documentation artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: documentation path: docs/_build/html/ @@ -533,7 +541,7 @@ jobs: tar -cJf paperless-ngx.tar.xz paperless-ngx/ - name: Upload release artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release path: dist/paperless-ngx.tar.xz @@ -552,7 +560,7 @@ jobs: steps: - name: Download release artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release path: ./ @@ -603,7 +611,7 @@ jobs: ref: main - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.DEFAULT_PYTHON_VERSION }} cache: "pipenv" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bd3943144..fc521843f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,7 +42,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -51,4 +51,4 @@ jobs: # queries: ./path/to/local/query, your-org/your-repo/queries@main - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/repo-maintenance.yml b/.github/workflows/repo-maintenance.yml index c732d0342..ec0153726 100644 --- a/.github/workflows/repo-maintenance.yml +++ b/.github/workflows/repo-maintenance.yml @@ -18,7 +18,7 @@ jobs: name: 'Stale' runs-on: ubuntu-latest steps: - - uses: actions/stale@v8 + - uses: actions/stale@v9 with: days-before-stale: 7 days-before-close: 14