File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 <a href =" https://codecov.io/gh/securenative/securenative-php " >
1313 <img src="https://codecov.io/gh/securenative/securenative-php/branch/master/graph/badge.svg" />
1414 </a >
15+ <a href =" https://packagist.org/packages/securenative/securenative-php " >
16+ <img src =" https://img.shields.io/packagist/v/securenative/securenative-php " alt =" npm version " height =" 20 " >
17+ </a>
1518</p >
1619<p align =" center " >
1720 <a href =" https://docs.securenative.com " >Documentation</a > |
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - dev
8+ - dev-*
9+
10+ jobs :
11+ build :
12+ runs-on : ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest]
16+ steps :
17+ - name : Notify slack success
18+ if : success()
19+ id : slack # IMPORTANT: reference this step ID value in future Slack steps
20+ env :
21+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
22+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
23+ with :
24+ channel : github-actions
25+ status : STARTING
26+ color : warning
27+
28+ - uses : actions/checkout@v2
29+ - uses : php-actions/composer@v1
30+ - uses : php-actions/phpunit@v9
31+
32+ - name : Publish to codecov
33+ run : bash <(curl -s https://codecov.io/bash)
34+
35+ - name : Notify slack success
36+ if : success()
37+ env :
38+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
39+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
40+ with :
41+ message_id : ${{ steps.slack.outputs.message_id }}
42+ channel : github-actions
43+ status : SUCCESS
44+ color : good
45+
46+ - name : Notify slack fail
47+ if : failure()
48+ env :
49+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
50+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
51+ with :
52+ message_id : ${{ steps.slack.outputs.message_id }}
53+ channel : github-actions
54+ status : FAILED
55+ color : danger
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ - dev
8+ - dev-*
9+
10+ jobs :
11+ build-test :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Notify slack success
15+ if : success()
16+ id : slack # IMPORTANT: reference this step ID value in future Slack steps
17+ env :
18+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
19+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
20+ with :
21+ channel : github-actions
22+ status : STARTING
23+ color : warning
24+
25+ - uses : actions/checkout@v2
26+ - uses : php-actions/composer@v1
27+ - uses : php-actions/phpunit@v9
28+
29+ - name : Publish to codecov
30+ run : bash <(curl -s https://codecov.io/bash)
31+
32+ - name : Notify slack success
33+ if : success()
34+ env :
35+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
36+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
37+ with :
38+ message_id : ${{ steps.slack.outputs.message_id }}
39+ channel : github-actions
40+ status : SUCCESS
41+ color : good
42+
43+ - name : Notify slack fail
44+ if : failure()
45+ env :
46+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
47+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
48+ with :
49+ message_id : ${{ steps.slack.outputs.message_id }}
50+ channel : github-actions
51+ status : FAILED
52+ color : danger
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ release :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Notify slack success
12+ if : success()
13+ id : slack # IMPORTANT: reference this step ID value in future Slack steps
14+ env :
15+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
16+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
17+ with :
18+ channel : github-actions
19+ status : STARTING
20+ color : warning
21+
22+ - uses : actions/checkout@v2
23+ - uses : php-actions/composer@v1
24+ - uses : php-actions/phpunit@v9
25+
26+ - name : Publish to codecov
27+ run : bash <(curl -s https://codecov.io/bash)
28+
29+ - name : Publish
30+ uses : musps/action-deployer-php@master
31+ with :
32+ env :
33+ SSH_PRIVATE_KEY : ${{ secrets.PRIVATE_KEY }}
34+
35+ - name : Notify slack success
36+ if : success()
37+ env :
38+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
39+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
40+ with :
41+ message_id : ${{ steps.slack.outputs.message_id }}
42+ channel : github-actions
43+ status : SUCCESS
44+ color : good
45+
46+ - name : Notify slack fail
47+ if : failure()
48+ env :
49+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
50+ uses : voxmedia/github-action-slack-notify-build@v1.1.1
51+ with :
52+ message_id : ${{ steps.slack.outputs.message_id }}
53+ channel : github-actions
54+ status : FAILED
55+ color : danger
You can’t perform that action at this time.
0 commit comments