Skip to content

Commit 286560e

Browse files
authored
Merge pull request #342 from mulkieran/use-shared-action
Use shared action to check for typos and yaml lints
2 parents 14fed86 + 9bb1eaa commit 286560e

7 files changed

Lines changed: 25 additions & 8 deletions

File tree

‎.github/workflows/dummy.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: testing dummy CI
33

4-
# yamllint disable-line rule:truthy
54
on:
65
push:
76
branches:

‎.github/workflows/main.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: testing CI
33

4-
# yamllint disable-line rule:truthy
54
on:
65
push:
76
branches:
@@ -37,10 +36,6 @@ jobs:
3736
- dependencies: ruff
3837
image: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT
3938
task: make -f Makefile fmt-travis
40-
# VERIFICATION OF TEST INFRASTRUCTURE
41-
- dependencies: yamllint
42-
image: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT
43-
task: make -f Makefile yamllint
4439
runs-on: ubuntu-latest
4540
container: ${{ matrix.image }}
4641
steps:
@@ -58,3 +53,8 @@ jobs:
5853
run: python --version
5954
- name: Run test
6055
run: ${{ matrix.task }}
56+
57+
general_checks:
58+
uses: stratis-storage/github-actions/.github/workflows/reusable_general.yml@master
59+
with:
60+
fedora-container-image-number: 43 # CURRENT DEVELOPMENT ENVIRONMENT

‎.yamllint.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
line-length: disable
6+
truthy:
7+
ignore:
8+
.github/workflows/*.yml

‎CHANGES.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Recommended release for development: Fedora 39
122122
- Change StartPool invocation for new revision (reverted):
123123
https://github.com/stratis-storage/testing/pull/263
124124

125-
- Verify intergrity meta-allocation is rounded (reverted):
125+
- Verify integrity meta-allocation is rounded (reverted):
126126
https://github.com/stratis-storage/testing/pull/279
127127

128128
- Make RAID metadata tests more interesting (reverted):

‎Makefile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ fmt-travis:
1515
.PHONY: yamllint
1616
yamllint:
1717
yamllint --strict .github/workflows/*.yml
18+
yamllint --strict .yamllint.yaml
19+
20+
.PHONY: check-typos
21+
check-typos:
22+
typos
23+
24+
.PHONY: fix-typos
25+
fix-typos:
26+
typos -w

‎_typos.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default.extend-ignore-re = ["a(.*)"] # ignore D-Bus introspection data

‎testlib/infra.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ class MountPointManager:
766766

767767
def __init__(self):
768768
"""
769-
Initalizer.
769+
Initializer.
770770
771771
:rtype: None
772772
"""

0 commit comments

Comments
 (0)