Skip to content

Update GitHub Actions #3155

Update GitHub Actions

Update GitHub Actions #3155

Workflow file for this run

name: CI
on: [merge_group, push, pull_request, workflow_dispatch]
jobs:
build_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@aca7b64a59c0063db8564e0ffdadd3887f1cbae5
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Cache Dependencies
uses: actions/cache@8469c94c6a180dfb41a1bd7e1b46ac557ea124f1
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn install
- name: Run Linting
run: yarn lint
- name: Run Unit Tests
run: yarn test