Skip to content

Commit

Permalink
Merge pull request #13 from kehoecj/add_1_7_0_support
Browse files Browse the repository at this point in the history
updating to config file validator 1.7.0
  • Loading branch information
kehoecj authored Aug 13, 2024
2 parents 3ceb12e + 027aff1 commit 1d20ec1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Test Defaults
uses: kehoecj/validate-configs-action@765e5687d9236078b05b3c8338721499c9edf9d4 # v3.0.0
uses: kehoecj/validate-configs-action@add_1_7_0_support
with:
exclude-dirs: failing
search-paths: test/good.ini test/good.json test/good.toml test/good.xml test/good.yaml
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine:3.20@sha256:0a4eaa0eecf5f8c050e5bba433f58c052be7587ee8af3e8b3910ef9ab5fbe9f5
COPY entrypoint.sh /entrypoint.sh
ENV CFV_VERSION=v1.7.0
RUN apk --no-cache add curl tar && \
curl https://github.com/Boeing/config-file-validator/releases/download/v1.6.0/validator-v1.6.0-linux-386.tar.gz \
-o /tmp/validator-v1.6.0-linux-386.tar.gz -s -L && \
tar -xvf /tmp/validator-v1.6.0-linux-386.tar.gz -C /tmp && \
curl https://github.com/Boeing/config-file-validator/releases/download/${CFV_VERSION}/validator-${CFV_VERSION}-linux-386.tar.gz \
-o /tmp/validator-${CFV_VERSION}-linux-386.tar.gz -s -L && \
tar -xvf /tmp/validator-${CFV_VERSION}-linux-386.tar.gz -C /tmp && \
mv /tmp/validator /usr/local/bin && \
rm -rf /tmp/* && \
chmod 0755 /usr/local/bin/validator && \
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

* Apple PList XML
* CSV
* EDITORCONFIG
* ENV
* HCL
* HOCON
Expand Down Expand Up @@ -57,7 +58,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
```
### Custom search path
Expand All @@ -67,7 +68,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
with:
search-path: ./project/configs
```
Expand All @@ -79,7 +80,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
with:
search-path: ./project/configs ./project/devops
```
Expand All @@ -91,7 +92,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
with:
exclude-dirs: "tests,vendor"
```
Expand All @@ -103,7 +104,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
with:
exclude-file-types: "json,xml"
```
Expand All @@ -115,7 +116,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
with:
depth: 0
```
Expand All @@ -127,7 +128,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
with:
reporter: "json"
```
Expand All @@ -139,7 +140,7 @@ jobs:
validate-config-files:
runs-on: ubuntu-latest
steps:
- uses: kehoe/validate-configs-action@v3
- uses: kehoe/validate-configs-action@v4
with:
group-by: "pass-fail"
```
Expand Down

0 comments on commit 1d20ec1

Please sign in to comment.