-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 1.07 KB
/
test-project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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