Skip to content

Commit

Permalink
feat: Added PR checks [UA-8891]
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolegros committed Jul 4, 2024
1 parent 70526eb commit bcd61de
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Test
on:
pull_request:
branches: [ "master" ]

jobs:
build-and-test:
name: 'Build and Test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Test
run: npm run test
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit bcd61de

Please sign in to comment.