Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh authored and velsietis committed Jan 10, 2022
1 parent 77a04a1 commit f68748a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test
on: [push]
jobs:
Use-Action:
name: Use Action
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- id: validate-yaml-schema
uses: ./
with:
yamlSchemasJson: |
{
"https://json.schemastore.org/github-action.json": ["action.yml", "action.yaml"],
"https://json.schemastore.org/github-workflow.json": [".github/workflows/*.yml", ".github/workflows/*.yaml"]
}
- run: |
for f in action.yml .github/workflows/test.yml; do
if $(jq "split(\",\") | all(. != \"$f\")" <<< '"${{ steps.validate-yaml-schema.outputs.validFiles }}"'); then
echo "$f was not validated"
exit 1
fi
done
shell: bash

0 comments on commit f68748a

Please sign in to comment.