From bcd61de9858f5644526cf9d7e4105f21708bc69d Mon Sep 17 00:00:00 2001 From: Nicolas Legros Date: Thu, 4 Jul 2024 14:57:33 -0400 Subject: [PATCH] feat: Added PR checks [UA-8891] --- .github/workflows/pr-checks.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..91681f1 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -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 }}