-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.28 KB
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Repository Checks
on: [ push ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
# Get the code from the repository to be packaged
- name: Get Repo
uses: actions/checkout@v3
# Install pre-commit and run the checks
- name: Pre-commit Checks
run: |
pip -q install pre-commit
pre-commit run --all-files
# Lint the Dockerfile for syntax correctness and conformance with
# standards.
- name: Docker Lint
uses: luke142367/[email protected]
with:
target: Dockerfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest
steps:
# Get the code from the repository to be packaged
- name: Get Repo
uses: actions/checkout@v3
- name: Run Action - Specific File
uses: ./
with:
case-path: "./tests/data/simple-case.jsonld"
case-version: "case-1.3.0"
- name: Run Action - Directory Filter
uses: ./
with:
case-path: "./tests/data/"
case-version: "case-1.3.0"
extension-filter: "jsonld"
- name: Run Action - Directory No Filter
uses: ./
with:
case-path: "./tests/data/"
case-version: "case-1.3.0"