Skip to content

Commit 334d3ba

Browse files
committed
Add pre-commit
1 parent 1f58a91 commit 334d3ba

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CASE Validate
1+
name: Build Jobs
22

33
on: [ push ]
44

@@ -76,11 +76,11 @@ jobs:
7676
# Build the project
7777
- name: Build Project
7878
run: mvn compile assembly:single
79-
working-directory: ./java/
79+
working-directory: ./java/case2geo/
8080

8181
# Run the Java CASE conversion example
8282
- name: Run CASE Conversion
8383
run: |
8484
java -jar ./target/case2geo-0.1.0.jar ../../data/geo.json ../../output/java.geojson
8585
cat ../output/java.geojson
86-
working-directory: ./java/
86+
working-directory: ./java/case2geo/

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint
2+
3+
on: [ push ]
4+
5+
# Build all of the projects and run them against the CASE graph
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
# Get the code from the repository
13+
- name: Get Repo
14+
uses: actions/checkout@v3
15+
16+
# Install pre-commit and run it
17+
- name: Pre-commit Checks
18+
run: |
19+
pip -q install pre-commit
20+
pre-commit run --all-files

0 commit comments

Comments
 (0)