Feature: handle tools (CMEM-5037) #1005
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: "CI_01: Convention tests" | |
on: | |
push: | |
branches-ignore: | |
- "develop" | |
- "main" | |
pull_request: | |
jobs: | |
test-branch-name: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Test branch name | |
# https://github.com/marketplace/actions/branch-name-rules | |
uses: deepakputhraya/action-branch-name@master | |
with: | |
regex: '([a-z])+\/([a-z]).([aA-zZ\.\-\d])+' | |
allowed_prefixes: 'feature,release,fix,bugfix,hotfix,change,temp' | |
ignore: 'main,develop' | |
min_length: 10 | |
max_length: 100 | |
test-documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test existence of important files | |
# https://github.com/marketplace/actions/file-existence | |
id: check_files | |
uses: andstor/file-existence-action@v2 | |
with: | |
files: "package.json, LICENSE, README.md, CHANGELOG.md" | |
- name: "Test for \"## [Unreleased]\" section in changelog" | |
if: steps.check_files.outputs.files_exists == 'true' | |
run: grep "## \[Unreleased\]" CHANGELOG.md |