Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added PR validation workflow

Blue Mousef3fa474be1cc
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
new file mode 100644
index 000000000..ba05778fe
--- /dev/null
+++ b/.github/workflows/pull_request.yml
@@ -0,0 +1,33 @@
+name: Pull request validation workflow
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+ types: [opened, labeled, synchronize, ready_for_review]
+
+jobs:
+ checks:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [16.19.x]
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+
+ - name: Setup NodeJS ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ - name: Install
+ run: npm install
+
+ - name: Lint validation
+ run: npm run lint