diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3cf4529..350c0d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,33 +1,32 @@ -name: Build +name: Build and Test on Pull Request on: pull_request: workflow_dispatch: -concurrency: +concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build: - name: Build + name: Build and Test runs-on: ubuntu-latest steps: - - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: 20.x + - name: Set up Node.js 22 + uses: actions/setup-node@v4 + with: + node-version: 22.x - - name: Install dependencies - run: npm install + - name: Install dependencies + run: npm ci - - name: Build - run: npm run build + - name: Build + run: npm run build - - name: Test - run: npm test + - name: Test + run: npm test