Skip to content

Commit

Permalink
Update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kenrick95 committed Aug 27, 2022
1 parent 8aae331 commit 45e1e8e
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 45e1e8e

Please sign in to comment.