@@ -14,14 +14,14 @@ jobs:
1414 - name : install dependencies
1515 run : sudo apt update -qq && sudo apt -y install libxml2-utils
1616 - name : Check out repository code
17- uses : actions/checkout@v4
17+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1818 - name : Install PHP
19- uses : shivammathur/setup-php@v2
19+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # master
2020 with :
2121 php-version : ' 8.1'
2222 coverage : ' none'
2323 - name : Cache dependencies
24- uses : actions/cache@v3
24+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2525 with :
2626 path : ' ~/.cache/composer'
2727 key : " cache-composer-${{ hashFiles('composer.json') }}"
@@ -63,15 +63,15 @@ jobs:
6363 git config --global core.autocrlf false
6464 git config --global core.eol lf
6565 - name : Check out repository code
66- uses : actions/checkout@v4
66+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6767 - name : Install PHP
68- uses : shivammathur/setup-php@v2
68+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # master
6969 with :
7070 coverage : ' xdebug'
7171 php-version : ${{ matrix.php_version }}
7272 extensions : ast-1.1.1
7373 - name : Cache dependencies
74- uses : actions/cache@v3
74+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
7575 with :
7676 path : ' ~/.cache/composer'
7777 key : " cache-composer-${{ hashFiles('composer.json') }}"
@@ -101,17 +101,17 @@ jobs:
101101 run : php vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-cobertura=cobertura.xml --log-junit=junit.xml
102102 - name : Upload coverage to Codecov
103103 if : ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
104- uses : codecov/codecov-action@v5
104+ uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
105105 with :
106106 token : ${{ secrets.CODECOV_TOKEN }}
107107 - name : Upload test results to Codecov
108108 if : ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
109- uses : codecov/test-results-action@v1
109+ uses : codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
110110 with :
111111 token : ${{ secrets.CODECOV_TOKEN }}
112112 - name : Upload coverage to Qlty
113113 if : ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
114- uses : qltysh/qlty-action/coverage@v1
114+ uses : qltysh/qlty-action/coverage@a19242102d17e497f437d7466aa01b528537e899 # v2.2.0
115115 with :
116116 token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
117117 files : cobertura.xml
@@ -120,20 +120,3 @@ jobs:
120120 env :
121121 QLTY_COVERAGE_TOKEN : ${{ secrets.QLTY_COVERAGE_TOKEN }}
122122
123- slack-notify :
124- needs : [run-tests, style-checks]
125- if : always()
126- runs-on : ubuntu-latest
127- steps :
128- - uses : technote-space/workflow-conclusion-action@v3
129- - name : Post to a Slack channel
130- id : slack
131- uses : slackapi/slack-github-action@v1.23.0
132- with :
133- # Slack channel id, channel name, or user id to post a message.
134- # See also: https://api.slack.com/methods/chat.postMessage#channels
135- channel-id : ' #mo4'
136- # For posting a simple plain text message
137- slack-message : " GitHub build result: ${{ job.status }}\n ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
138- env :
139- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
0 commit comments