Skip to content

Commit

Permalink
Add CI workflow for linting artifacts (#5)
Browse files Browse the repository at this point in the history
* Amend requirement with covered feature

* Add CI workflow for linting artifacts

Run ShellCheck on workspace files.
  • Loading branch information
sophokles73 authored Aug 21, 2024
1 parent cb57d29 commit fd154d8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Linting

on:
pull_request:
push:
branches:
- main

jobs:
linting:
name: Lint artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
shellcheck "${GITHUB_WORKSPACE}"/*.sh
3 changes: 3 additions & 0 deletions .github/workflows/requirements-tracing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Requirements tracing

on:
pull_request:
push:
branches:
- main

jobs:
tracing:
Expand Down
3 changes: 3 additions & 0 deletions doc/spec/system_requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ Needs: req

The OFT Action runs the OpenFastTrace `trace` command.

Covers:
- feat~standard-github-action~1

Needs: impl
2 changes: 2 additions & 0 deletions run-oft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ files=$3
echo "::notice::using OpenFastTrace JARs from: ${LIB_DIR}"

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

0 comments on commit fd154d8

Please sign in to comment.