Skip to content

Commit

Permalink
Send Commit SHA to Hatchways Server & Bump to v1.1.0 (#44)
Browse files Browse the repository at this point in the history
* Pass commit sha to BE

* Update dist

* Add and use webhook types

* Add eslint-import-resolver-typescript

* Update URL

* Bump version to v1.1.0
  • Loading branch information
etchao authored Jun 6, 2023
1 parent 306508b commit d0faf76
Show file tree
Hide file tree
Showing 10 changed files with 16,197 additions and 7,694 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@
"node": true,
"es6": true,
"jest/globals": true
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
api_key: ${{ secrets.HATCHWAYS_API_KEY }}
files: |
- outputs/*.xml
api_url: https://master-dot-hatchways-staging.uc.r.appspot.com/api/github/actions
api_url: https://master-dot-hatchways-staging.uc.r.appspot.com/api/github/actions/automated-test-results
2 changes: 1 addition & 1 deletion __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {expect, test} from '@jest/globals'
test('test runs', () => {
process.env['INPUT_API_KEY'] = '123456'
process.env['INPUT_FILES'] = '- outputs/*.xml'
process.env['INPUT_API_URL'] = 'https://127.0.0.1:8080/api/github/actions'
process.env['INPUT_API_URL'] = 'https://127.0.0.1:8080/api/github/actions/automated-test-results'
process.env['GITHUB_REPOSITORY'] = 'hatchways/hatchways-action'
process.env['GITHUB_SERVER_URL'] = 'https://github.com'
process.env['GITHUB_RUN_ID'] = '1'
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
api_url:
required: false
description: 'The URL to ping on Hatchways'
default: 'https://app2.hatchways.io/api/github/actions'
default: 'https://app2.hatchways.io/api/github/actions/automated-test-results'
outputs:
status_code:
description: 'The response from Hatchways'
Expand Down
Loading

0 comments on commit d0faf76

Please sign in to comment.