Skip to content

Commit

Permalink
chore: add simple test scripts for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dhommen committed Jan 25, 2024
1 parent 18989c7 commit 0e65438
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ci/build-and-publish.test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tests/ci/create-release.test.sh
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions tests/ci/push-event.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
}
},
"repository": {
"name": "mds-ap3",
"owner": {
"name": "truzzt"
}
}
}
6 changes: 6 additions & 0 deletions tests/ci/release-event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"release": {
"name": "test",
"tag_name": "test"
}
}

0 comments on commit 0e65438

Please sign in to comment.