Skip to content

Commit

Permalink
feat - added new testing steps to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco committed Nov 22, 2024
1 parent 696e0ba commit 81e6213
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,31 @@ name: Build and Test on Pull Request

on:
pull_request:
branches:
- '**' # Triggers on pull requests to any branch
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
build:
name: Build and Test
runs-on: ubuntu-latest

steps:
- name: Checkout Code
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
node-version: 22.x

- name: Install Dependencies
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run Tests
- name: Test
run: npm test

0 comments on commit 81e6213

Please sign in to comment.