From 45e1e8ec5aae95593314d4ccac59b6151c8212e7 Mon Sep 17 00:00:00 2001 From: Kenrick Date: Sat, 27 Aug 2022 09:37:13 +0800 Subject: [PATCH] Update gh actions --- .github/workflows/nodejs.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4f12686..cef416c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -16,30 +16,18 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [16.x, 18.x] steps: - - uses: actions/checkout@v2 - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v1 - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-node-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node-${{ matrix.node-version }}-yarn- + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: install - run: yarn install - - name: run tests + cache: 'yarn' + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Run Tests run: yarn workspaces foreach --verbose run test - env: - CI: true - - name: run builds + - name: Run Builds run: yarn workspaces foreach --verbose run build - env: - CI: true