From e8bc070192dee70f0dbee21f6f5c6adce2e565c8 Mon Sep 17 00:00:00 2001 From: Klaus Hott Vidal Date: Tue, 22 Aug 2023 08:25:29 +1200 Subject: [PATCH] updating github actions versions (#908) --- .github/workflows/CI.yml | 60 ++++++++++++---------------------------- 1 file changed, 18 insertions(+), 42 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e065e9c7d..7d7ec0e3b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,16 +13,11 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - id: cache - with: - path: | - node_modules - key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} + cache: 'npm' - name: Install run: npm install - name: lint @@ -32,16 +27,11 @@ jobs: name: Test production runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - id: cache - with: - path: | - node_modules - key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} + cache: 'npm' - name: Install run: npm install - name: Build @@ -53,16 +43,11 @@ jobs: name: Prettier V2 runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - id: cache - with: - path: | - node_modules - key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} + cache: 'npm' - name: Install run: npm install - name: Build with Prettier V3 @@ -81,16 +66,11 @@ jobs: matrix: node: [16, 18, 20] steps: - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - id: cache - with: - path: | - node_modules - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('package-lock.json') }} + cache: 'npm' - name: Install run: npm install - name: Run tests @@ -100,16 +80,11 @@ jobs: name: Test on MacOS with Node 16 runs-on: macos-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - id: cache - with: - path: | - node_modules - key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} + cache: 'npm' - name: Install run: npm install - name: Run tests @@ -119,10 +94,11 @@ jobs: name: Test on Windows with Node 16 runs-on: windows-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - - uses: actions/checkout@v2 + cache: 'npm' - name: Install run: npm install - name: Run tests