diff --git a/tests/ci/build-and-publish.test.sh b/tests/ci/build-and-publish.test.sh new file mode 100755 index 0000000..8a633bc --- /dev/null +++ b/tests/ci/build-and-publish.test.sh @@ -0,0 +1,2 @@ +#!/bin/bash +act release -s GITHUB_TOKEN="$(gh auth token)" -j build-and-publish-edc-extension -e tests/ci/release-event.json --container-architecture linux/amd64 diff --git a/tests/ci/create-release.test.sh b/tests/ci/create-release.test.sh new file mode 100755 index 0000000..0ef85f5 --- /dev/null +++ b/tests/ci/create-release.test.sh @@ -0,0 +1,2 @@ +#!/bin/bash +act push -s GITHUB_TOKEN="$(gh auth token)" -j release -e tests/ci/push-event.json --container-architecture linux/amd64 diff --git a/tests/ci/push-event.json b/tests/ci/push-event.json new file mode 100644 index 0000000..d3f31b1 --- /dev/null +++ b/tests/ci/push-event.json @@ -0,0 +1,19 @@ + +{ + "ref": "refs/heads/alpha", + "head_commit": { + "id": "83bcd01b840bf2339e4cd03b2498a47fd47ce5e7", + "message": "feat: this is a test", + "timestamp": "Commit timestamp", + "author": { + "name": "Author Name", + "email": "author@example.com" + } + }, + "repository": { + "name": "mds-ap3", + "owner": { + "name": "truzzt" + } + } +} diff --git a/tests/ci/release-event.json b/tests/ci/release-event.json new file mode 100644 index 0000000..435cb97 --- /dev/null +++ b/tests/ci/release-event.json @@ -0,0 +1,6 @@ +{ + "release": { + "name": "test", + "tag_name": "test" + } +}