From 3f4fbda01b243b9d53fce68270ae5f4169f721ce Mon Sep 17 00:00:00 2001 From: nwittstruck Date: Fri, 29 Mar 2024 16:54:13 +0100 Subject: [PATCH] chore: remove external github action to install elixir: include nodejs also in each job --- .../frontend_on_push_branch_execute_ci_cd.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/frontend_on_push_branch_execute_ci_cd.yml b/.github/workflows/frontend_on_push_branch_execute_ci_cd.yml index 7a2cca1..7f22dd9 100644 --- a/.github/workflows/frontend_on_push_branch_execute_ci_cd.yml +++ b/.github/workflows/frontend_on_push_branch_execute_ci_cd.yml @@ -43,7 +43,16 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - + - uses: actions/setup-node@v4 + with: + node-version: ${{env.NODE_VERSION}} + - uses: actions/cache@v4 + id: cache-npm + with: + path: deps + key: ${{ runner.os }}-npm-v1-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-npm-v1 + - run: npm --prefix frontend ci - run: npm --prefix frontend run lint @@ -56,6 +65,9 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{env.NODE_VERSION}} - uses: actions/cache@v4 id: cache-npm with: @@ -76,7 +88,9 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - + - uses: actions/setup-node@v4 + with: + node-version: ${{env.NODE_VERSION}} - uses: actions/cache@v4 id: cache-npm with: