name: Node Continuous Integration

on:
  pull_request:
    branches: [ main ]

jobs:
  test_pull_request:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v3   # updated to v3 for better support
        with:
          node-version: 23
      - run: yarn install --frozen-lockfile
      - run: yarn test
      - run: yarn build