From a8c2128597c625b9e4fbdfe7f49672999a717935 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Sat, 13 Jan 2024 00:21:58 -0500 Subject: [PATCH] ci: :green_heart: reorder ci --- .github/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7e7452..c1934ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,18 +9,18 @@ jobs: - name: Checkout code uses: actions/checkout@v4.1.1 + - name: Load Node.js latest + uses: actions/setup-node@v4.0.1 + with: + node-version: '20.x' + - name: Load cached modules - uses: actions/cache@v3.3.3 + uses: actions/cache/save@v3.3.3 with: path: | **/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - name: Load Node.js latest - uses: actions/setup-node@v4.0.1 - with: - node-version: '20.x' - - name: Install all dependencies run: npm ci @@ -33,6 +33,10 @@ jobs: steps: - uses: actions/checkout@v4.1.1 + - uses: actions/setup-node@v4.0.1 + with: + node-version: '20.x' + - uses: actions/cache@v3.3.3 with: path: | @@ -40,10 +44,6 @@ jobs: **/lib key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - uses: actions/setup-node@v4.0.1 - with: - node-version: '20.x' - - run: npm run build test: name: test @@ -56,7 +56,7 @@ jobs: with: node-version: '20.x' - - uses: actions/cache@v3.3.3 + - uses: actions/cache/restore@v3.3.3 with: path: | **/node_modules