[ci] #3768: add client cli tests into CI #1961
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: I2::Dev::Title | |
on: | |
pull_request: | |
branches: [iroha2-dev] | |
types: [opened, edited, reopened] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
# TODO: Add labels when https://github.com/actions/first-interaction/issues/10 is fixed. | |
steps: | |
- name: Feature | |
uses: actions-ecosystem/action-regex-match@v2 | |
id: feature-match | |
with: | |
text: ${{ github.event.pull_request.title }} | |
regex: '^\[feature\] #\d+(, #\d+)*: .+$' | |
# - name: Add feature label | |
# uses: actions-ecosystem/action-add-labels@v1 | |
# if: steps.feature-match.outputs.match != '' | |
# continue-on-error: true | |
# with: | |
# github_token: ${{ secrets.github_token }} | |
# labels: | | |
# Enhancement | |
- name: Refactor | |
uses: actions-ecosystem/action-regex-match@v2 | |
id: refactor-match | |
if: steps.feature-match.outputs.match == '' | |
with: | |
text: ${{ github.event.pull_request.title }} | |
regex: '^\[refactor\]( #\d+(, #\d+)*)?: .+$' | |
# - name: Add Refactor label | |
# uses: actions-ecosystem/action-add-labels@v1 | |
# if: steps.refactor-match.outputs.match != '' | |
# continue-on-error: true | |
# with: | |
# github_token: ${{ secrets.github_token }} | |
# labels: | | |
# Refactor | |
- name: Fix | |
uses: actions-ecosystem/action-regex-match@v2 | |
id: fix-match | |
if: steps.refactor-match.outputs.match == '' | |
with: | |
text: ${{ github.event.pull_request.title }} | |
regex: '\[fix\] #\d+(, #\d+)*: .+$' | |
# - name: Add fix label | |
# uses: actions-ecosystem/action-add-labels@v1 | |
# if: steps.fix-match.outputs.match != '' | |
# continue-on-error: true | |
# with: | |
# github_token: ${{ secrets.github_token }} | |
# labels: | | |
# Bug | |
- name: Documentation | |
uses: actions-ecosystem/action-regex-match@v2 | |
id: docs-match | |
if: steps.feature-match.outputs.match == '' | |
with: | |
text: ${{ github.event.pull_request.title }} | |
regex: '^\[documentation\]( #\d+(, #\d+)*)?: .+$' | |
# - name: Add Documentation label | |
# uses: actions-ecosystem/action-add-labels@v1 | |
# if: steps.docs-match.outputs.match != '' | |
# continue-on-error: true | |
# with: | |
# github_token: ${{ secrets.github_token }} | |
# labels: | | |
# Documentation | |
- name: CI | |
uses: actions-ecosystem/action-regex-match@v2 | |
id: ci-match | |
if: steps.feature-match.outputs.match == '' | |
with: | |
text: ${{ github.event.pull_request.title }} | |
regex: '^\[ci\]( #\d+(, #\d+)*)?: .+$' | |
# - name: Add CI label | |
# uses: actions-ecosystem/action-add-labels@v1 | |
# if: steps.ci-match.outputs.match != '' | |
# continue-on-error: true | |
# with: | |
# github_token: ${{ secrets.github_token }} | |
# labels: | | |
# CI | |
- name: None of the above | |
if: steps.fix-match.outputs.match == '' && steps.refactor-match.outputs.match == '' && steps.feature-match.outputs.match == '' && steps.docs-match.outputs.match == '' && steps.ci-match.outputs.match == '' | |
run: exit 1 |