diff --git a/.github/workflows/check-packages.yml b/.github/workflows/check-packages.yml index 5f324a161..1c4b53fdb 100644 --- a/.github/workflows/check-packages.yml +++ b/.github/workflows/check-packages.yml @@ -11,18 +11,12 @@ concurrency: jobs: setup-node: name: Setup Dependencies - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: 'npm' - - name: Install dependencies - run: npm ci - + uses: ./.github/workflows/node-setup.yml + strategy: + matrix: + node-version: [22] + with: + node-version: ${{ matrix.node-version }} check_lint: name: Validate package linting runs-on: ubuntu-latest @@ -31,14 +25,9 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: 'npm' - - run: npm ci + uses: ./.github/actions/cache-restore - name: Check Linting run: npm run lint - check_format: name: Validate package formatting runs-on: ubuntu-latest @@ -47,10 +36,6 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: 'npm' - - run: npm ci + uses: ./.github/actions/cache-restore - name: Check Formatting run: npm run test:format