Skip to content

Commit fd154d8

Browse files
authored
Add CI workflow for linting artifacts (#5)
* Amend requirement with covered feature * Add CI workflow for linting artifacts Run ShellCheck on workspace files.
1 parent cb57d29 commit fd154d8

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.github/workflows/linting.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Linting
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
linting:
11+
name: Lint artifacts
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- shell: bash
16+
run: |
17+
shellcheck "${GITHUB_WORKSPACE}"/*.sh

.github/workflows/requirements-tracing.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Requirements tracing
22

33
on:
44
pull_request:
5+
push:
6+
branches:
7+
- main
58

69
jobs:
710
tracing:

doc/spec/system_requirements.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ Needs: req
2929

3030
The OFT Action runs the OpenFastTrace `trace` command.
3131

32+
Covers:
33+
- feat~standard-github-action~1
34+
3235
Needs: impl

run-oft.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ files=$3
99
echo "::notice::using OpenFastTrace JARs from: ${LIB_DIR}"
1010

1111
# Run OpenFastTrace
12+
# shellcheck disable=SC2086
13+
# we need to provide the file patterns unquoted in order for the shell to expand any glob patterns like "*.md"
1214
if (java -cp "${LIB_DIR}/*" \
1315
org.itsallcode.openfasttrace.core.cli.CliStarter trace -o "${report_format}" \
1416
-f "${report_file_name}" \

0 commit comments

Comments
 (0)