From 561868f12ad0ce336e3ece85f4daec972559d34d Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Thu, 4 Jul 2024 15:26:58 +0200 Subject: [PATCH] fix: use last node lts in workflow --- .github/workflows/build.yml | 1 + .github/workflows/build_develop.yml | 1 + .github/workflows/static_analysis.yaml | 5 +++++ .github/workflows/tests.yaml | 1 + .github/workflows/update-jitsi.yml | 1 + 5 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6924528f..84bb3d263 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Workaround for yarn install timeouts, especially on Windows - run: yarn config set network-timeout 300000 diff --git a/.github/workflows/build_develop.yml b/.github/workflows/build_develop.yml index 96b96c839..2407d2e6f 100644 --- a/.github/workflows/build_develop.yml +++ b/.github/workflows/build_develop.yml @@ -26,6 +26,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Dependencies run: "./scripts/layered.sh" diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index 2caa342b6..ed0148f36 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -21,6 +21,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Dependencies run: "./scripts/layered.sh" @@ -43,6 +44,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Does not need branch matching as only analyses this layer - name: Install Deps @@ -60,6 +62,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Needs branch matching as it inherits .stylelintrc.js from matrix-react-sdk - name: Install Dependencies @@ -77,6 +80,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Does not need branch matching as only analyses this layer - name: Install Deps @@ -94,6 +98,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Deps run: "scripts/layered.sh" diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b654b2a3a..01965af41 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -23,6 +23,7 @@ jobs: uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Dependencies run: "./scripts/layered.sh" diff --git a/.github/workflows/update-jitsi.yml b/.github/workflows/update-jitsi.yml index 383ed0b1c..cf25e602e 100644 --- a/.github/workflows/update-jitsi.yml +++ b/.github/workflows/update-jitsi.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Deps run: "yarn install --frozen-lockfile"