Skip to content

Commit

Permalink
Merge 800464d into 29d81b8
Browse files Browse the repository at this point in the history
  • Loading branch information
mihinduranasinghe committed Sep 7, 2021
2 parents 29d81b8 + 800464d commit 6f57ab1
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* @mihinduranasinghe
*.js @mihinduranasinghe
*.yml @mihinduranasinghe
/public/ @mihinduranasinghe
12 changes: 11 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,14 @@ jobs:
run: npx surge --project ./build --domain ${PROD_DEPLOYMENT_URL}
env:
SURGE_LOGIN: ${{secrets.SURGE_LOGIN}}
SURGE_TOKEN: ${{secrets.SURGE_TOKEN}}
SURGE_TOKEN: ${{secrets.SURGE_TOKEN}}

- name: Open Issue
if: failure() && github.event_name == 'pull_request'
run: |
curl --request POST --url https://api.github.com/repos/${{ github.repository }}/issues --header 'authorization: Bearer ${{secrets.CUSTOM_GITHUB_TOKEN}}' --header 'content-type: application/json' \
--data '{
"title": "Automated issue for commit: ${{ github.sha }}",
"body": "This issue was automatically created by the GitHub Actions workflow **${{ github.workflow }}** \n\n The commit was : _${{ github.sha }}_.",
"assignees": ["${{github.event.pull_request.user.login}}"]
}'
14 changes: 14 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Notify on Issue

on:
issues:
types: [opened]

jobs:
slack-message:
runs-on: ubuntu-latest
steps:
- name: Slack Message
run: |
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"New Issue Created : Tech Conference Demo - Sysco LABS : <${{github.event.issue.html_url}} | ${{github.event.issue.title}}.>"}' ${{secrets.SLACK_WEBHOOK}}
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Notify on Release

on:
release:
types: [published]

jobs:
slack-message:
runs-on: ubuntu-latest
steps:
- name: Slack Message
run: |
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"New Release Tech Conference Demo - Sysco LABS : ${{github.event.release.tag_name}} is out, <${{github.event.release.html_url}}|check it out now>"}' ${{secrets.SLACK_WEBHOOK}}
2 changes: 1 addition & 1 deletion src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
const linkElement = screen.getByText(/learn react!/i);
expect(linkElement).toBeInTheDocument();
});

0 comments on commit 6f57ab1

Please sign in to comment.