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