From 6affd0f874ced28c4af5de9f07b7683b062c0b68 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Thu, 15 Aug 2024 11:14:05 +0200 Subject: [PATCH] Update github action versions --- .github/workflows/tests.yml | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 358b9d919d..6f172af5de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,7 +30,7 @@ jobs: with: fetch-depth: 0 # Set up Python and virtual environment - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Make venv @@ -51,7 +51,7 @@ jobs: poetry config virtualenvs.create false poetry self add "poetry-dynamic-versioning[plugin]" - name: Cache the virtualenv - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .venv key: ${{ runner.os }}-venv-${{ hashFiles('pyproject.toml') }} @@ -68,7 +68,7 @@ jobs: run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV # Install node and yarn in order to build the front end during packaging - name: Set Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.x - name: Install Yarn @@ -79,24 +79,24 @@ jobs: lint_typecheck_test_webui: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.x - - uses: borales/actions-yarn@v3 + - uses: borales/actions-yarn@v4 with: cmd: webui:install - - uses: borales/actions-yarn@v3 + - uses: borales/actions-yarn@v4 with: cmd: webui:build - - uses: borales/actions-yarn@v3 + - uses: borales/actions-yarn@v4 with: cmd: webui:test - - uses: borales/actions-yarn@v3 + - uses: borales/actions-yarn@v4 with: cmd: webui:lint - - uses: borales/actions-yarn@v3 + - uses: borales/actions-yarn@v4 with: cmd: webui:type-check @@ -105,12 +105,12 @@ jobs: runs-on: ubuntu-latest if: github.event_name != 'pull_request' # PR build doesnt get proper version, so dont try to build it steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # The following steps aren't needed, but if you want 100% guarantee the tagged/release build will work you can add them # - name: Set up Python - # uses: actions/setup-python@v4 + # uses: actions/setup-python@v5 # with: # python-version: "3.x" # - name: Install dependencies @@ -146,11 +146,11 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.event.ref, 'refs/tags') && github.repository_owner == 'locustio' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Install dependencies @@ -186,15 +186,15 @@ jobs: if: startsWith(github.event.ref, 'refs/tags') && github.repository_owner == 'locustio' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Set Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.x - name: Install Yarn @@ -236,15 +236,15 @@ jobs: if: github.ref == 'refs/heads/master' && github.repository_owner == 'locustio' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Set Node.js 20.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.x - name: Install Yarn