Skip to content

Commit

Permalink
Update build.yml (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Nov 22, 2024
1 parent 4671300 commit 4580c7c
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4580c7c

Please sign in to comment.