diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..fc6acab --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,20 @@ +name: push + +on: + push: + branches: + - trigger-e2e-tests-on-merge + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: trigger-e2e-tests + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ secrets.E2E_REPO_DISPATCH_PAT }}" \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/replicatedhq/replicated-actions-test/dispatches \ + -d '{"event_type":"e2e-tests"}' diff --git a/package-lock.json b/package-lock.json index f15dfd4..44a1e72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,9 @@ "jest": "^29.5.0", "ts-jest": "^29.1.0", "ts-node": "^10.9.1" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/@actions/core": { diff --git a/package.json b/package.json index a6b2fba..daf7406 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "directories": { "doc": "docs" }, + "engines": { + "node": ">=20.0.0" + }, "scripts": { "build": "tsc", "test": "npx jest --verbose",