Skip to content

Commit

Permalink
Merge pull request #8 from cabinetoffice/NTRNL-265-configure-git-acti…
Browse files Browse the repository at this point in the history
…on-workflow-for-build-and-test

Add git action config for build and test
  • Loading branch information
Mouhajer-CO authored Dec 14, 2023
2 parents 2de4c3d + 1615f49 commit 10ebc4e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2

updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
interval: 'weekly'
21 changes: 21 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build and Test Checks

on: [pull_request]

jobs:
build-and-test:

runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'

- run: npm ci
- run: npm run build
- run: npm test

0 comments on commit 10ebc4e

Please sign in to comment.