Skip to content

Updates

Updates #94

Workflow file for this run

name: acceptance-test
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
# Need to checkout for testing the Action in this repo
- uses: actions/checkout@v4
# creates invalid files that are excluded by git and should not fail
- name: invalid file creation
run: |
mkdir -p tmp/
echo "invalid: yaml" > tmp/invalid.yaml
echo "invalid: json" > tmp/invalid.json
# creates a valid file that should not fail
- name: valid file creation
run: echo "{}" > valid.yaml
- uses: ./
id: json-yaml-validate
with:
comment: "true"
exclude_file: .github/config/exclude.txt