diff --git a/.github/pullrequest.yml b/.github/pullrequest.yml new file mode 100644 index 0000000..75bd6e5 --- /dev/null +++ b/.github/pullrequest.yml @@ -0,0 +1,28 @@ +name: Build and Test + +on: + pull_request: + branches: + - main + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test + + - name: Build + run: npm run build diff --git a/package-lock.json b/package-lock.json index b7f6950..65f084f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,10 @@ "vite": "^5.2.8", "vite-plugin-vuetify": "^2.0.3", "vue-tsc": "^2.0.13" + }, + "engines": { + "node": "=20", + "npm": ">=10" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 2b4b0a4..31c073c 100644 --- a/package.json +++ b/package.json @@ -32,5 +32,9 @@ "vite": "^5.2.8", "vite-plugin-vuetify": "^2.0.3", "vue-tsc": "^2.0.13" + }, + "engines": { + "node": "=20", + "npm": ">=10" } }