Skip to content

Commit

Permalink
add simple test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebTheWizard committed Mar 1, 2024
1 parent bc18dc6 commit 0e654cb
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 294 deletions.
144 changes: 72 additions & 72 deletions tests/fail/noAuthor/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,78 +38,78 @@
"repository": {
"id": 186853002,
"node_id": "MDEwOlJlcG9zaXRvcnkxODY4NTMwMDI=",
"name": "Hello-World",
"full_name": "Codertocat/Hello-World",
"name": "NoAuthor",
"full_name": "Fail/NoAuthor",
"private": false,
"owner": {
"name": "Codertocat",
"email": "21031067+Codertocat@users.noreply.github.com",
"login": "Codertocat",
"name": "Fail",
"email": "21031067+Fail@users.noreply.github.com",
"login": "Fail",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"url": "https://api.github.com/users/Fail",
"html_url": "https://github.com/Fail",
"followers_url": "https://api.github.com/users/Fail/followers",
"following_url": "https://api.github.com/users/Fail/following{/other_user}",
"gists_url": "https://api.github.com/users/Fail/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Fail/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Fail/subscriptions",
"organizations_url": "https://api.github.com/users/Fail/orgs",
"repos_url": "https://api.github.com/users/Fail/repos",
"events_url": "https://api.github.com/users/Fail/events{/privacy}",
"received_events_url": "https://api.github.com/users/Fail/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/Codertocat/Hello-World",
"html_url": "https://github.com/Fail/NoAuthor",
"description": null,
"fork": false,
"url": "https://github.com/Codertocat/Hello-World",
"forks_url": "https://api.github.com/repos/Codertocat/Hello-World/forks",
"keys_url": "https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Codertocat/Hello-World/teams",
"hooks_url": "https://api.github.com/repos/Codertocat/Hello-World/hooks",
"issue_events_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",
"events_url": "https://api.github.com/repos/Codertocat/Hello-World/events",
"assignees_url": "https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",
"branches_url": "https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",
"tags_url": "https://api.github.com/repos/Codertocat/Hello-World/tags",
"blobs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Codertocat/Hello-World/languages",
"stargazers_url": "https://api.github.com/repos/Codertocat/Hello-World/stargazers",
"contributors_url": "https://api.github.com/repos/Codertocat/Hello-World/contributors",
"subscribers_url": "https://api.github.com/repos/Codertocat/Hello-World/subscribers",
"subscription_url": "https://api.github.com/repos/Codertocat/Hello-World/subscription",
"commits_url": "https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",
"compare_url": "https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Codertocat/Hello-World/merges",
"archive_url": "https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Codertocat/Hello-World/downloads",
"issues_url": "https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",
"pulls_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",
"releases_url": "https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",
"deployments_url": "https://api.github.com/repos/Codertocat/Hello-World/deployments",
"url": "https://github.com/Fail/NoAuthor",
"forks_url": "https://api.github.com/repos/Fail/NoAuthor/forks",
"keys_url": "https://api.github.com/repos/Fail/NoAuthor/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Fail/NoAuthor/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Fail/NoAuthor/teams",
"hooks_url": "https://api.github.com/repos/Fail/NoAuthor/hooks",
"issue_events_url": "https://api.github.com/repos/Fail/NoAuthor/issues/events{/number}",
"events_url": "https://api.github.com/repos/Fail/NoAuthor/events",
"assignees_url": "https://api.github.com/repos/Fail/NoAuthor/assignees{/user}",
"branches_url": "https://api.github.com/repos/Fail/NoAuthor/branches{/branch}",
"tags_url": "https://api.github.com/repos/Fail/NoAuthor/tags",
"blobs_url": "https://api.github.com/repos/Fail/NoAuthor/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Fail/NoAuthor/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Fail/NoAuthor/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Fail/NoAuthor/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Fail/NoAuthor/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Fail/NoAuthor/languages",
"stargazers_url": "https://api.github.com/repos/Fail/NoAuthor/stargazers",
"contributors_url": "https://api.github.com/repos/Fail/NoAuthor/contributors",
"subscribers_url": "https://api.github.com/repos/Fail/NoAuthor/subscribers",
"subscription_url": "https://api.github.com/repos/Fail/NoAuthor/subscription",
"commits_url": "https://api.github.com/repos/Fail/NoAuthor/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Fail/NoAuthor/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Fail/NoAuthor/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Fail/NoAuthor/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Fail/NoAuthor/contents/{+path}",
"compare_url": "https://api.github.com/repos/Fail/NoAuthor/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Fail/NoAuthor/merges",
"archive_url": "https://api.github.com/repos/Fail/NoAuthor/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Fail/NoAuthor/downloads",
"issues_url": "https://api.github.com/repos/Fail/NoAuthor/issues{/number}",
"pulls_url": "https://api.github.com/repos/Fail/NoAuthor/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Fail/NoAuthor/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Fail/NoAuthor/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Fail/NoAuthor/labels{/name}",
"releases_url": "https://api.github.com/repos/Fail/NoAuthor/releases{/id}",
"deployments_url": "https://api.github.com/repos/Fail/NoAuthor/deployments",
"created_at": 1557933565,
"updated_at": "2019-05-15T15:20:41Z",
"pushed_at": 1557933657,
"git_url": "git://github.com/Codertocat/Hello-World.git",
"ssh_url": "[email protected]:Codertocat/Hello-World.git",
"clone_url": "https://github.com/Codertocat/Hello-World.git",
"svn_url": "https://github.com/Codertocat/Hello-World",
"git_url": "git://github.com/Fail/NoAuthor.git",
"ssh_url": "[email protected]:Fail/NoAuthor.git",
"clone_url": "https://github.com/Fail/NoAuthor.git",
"svn_url": "https://github.com/Fail/NoAuthor",
"homepage": null,
"size": 0,
"stargazers_count": 0,
Expand All @@ -134,26 +134,26 @@
"master_branch": "master"
},
"pusher": {
"name": "Codertocat",
"email": "21031067+Codertocat@users.noreply.github.com"
"name": "Fail",
"email": "21031067+Fail@users.noreply.github.com"
},
"sender": {
"login": "Codertocat",
"login": "Fail",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"url": "https://api.github.com/users/Fail",
"html_url": "https://github.com/Fail",
"followers_url": "https://api.github.com/users/Fail/followers",
"following_url": "https://api.github.com/users/Fail/following{/other_user}",
"gists_url": "https://api.github.com/users/Fail/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Fail/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Fail/subscriptions",
"organizations_url": "https://api.github.com/users/Fail/orgs",
"repos_url": "https://api.github.com/users/Fail/repos",
"events_url": "https://api.github.com/users/Fail/events{/privacy}",
"received_events_url": "https://api.github.com/users/Fail/received_events",
"type": "User",
"site_admin": false
}
Expand Down
3 changes: 2 additions & 1 deletion tests/fail/noAuthor/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ act \
--secret-file "secrets.env" \
--workflows "$testDir/test.yml" \
--container-architecture "linux/amd64" \
--eventpath "$testDir/test.json"
--eventpath "$testDir/test.json" \
"$@"
Loading

0 comments on commit 0e654cb

Please sign in to comment.