Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

feat!: /api/build endpoint, github action #15

Merged
merged 6 commits into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/action/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"es2020": true,
"node": true
},
"extends": [
"google"
],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"rules": {
}
}
20 changes: 20 additions & 0 deletions packages/action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Flaky.dev'
description: 'Post Testing Logs to Flaky Server'
inputs:
github:
description: 'The Github Context JSON object'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think most of this information we need is populated in environment variables, see:

https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables

So, the user shouldn't need to provide this information.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variables are used, but I think they have to be used in the .github/workflows file, and this action.yaml metadata file just passes these environment variables into the javascript

required: true
default: 'None'
matrix:
description: 'Matrix information on run'
required: false
default: 'None'
os:
description: 'Operating System it is being run on'
required: true
logtype:
description: 'Type of Log.. e.g. (TAP, XML, ... TODO)'

runs:
using: 'node12'
main: 'dist/index.js'
Loading