diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..e831f8a --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,23 @@ +name: PR Checks +on: + pull_request: + types: + - opened +jobs: + pr-checks: + runs-on: ubuntu-latest + steps: + - name: Checkout Source + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 16.20.2 + - name: Install NPM Packages + run: npm install --also=dev + - name: Run ESlint + run: npm run lint + - name: Run Unit Tests + run: npm run test + - name: Build Project + run: npm run build:prod