File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 25
25
path : .venv
26
26
key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
27
27
28
- - if : ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
28
+ - id : install-dependencies
29
+ if : ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
29
30
run : poetry install
30
31
32
+ - id : install-jtd-codegen
33
+ run : |
34
+ # Download and unpack jtd-codegen
35
+ jtd_codegen_archive_url=$(curl https://api.github.com/repos/jsontypedef/json-typedef-codegen/releases | jq '.[0].assets.[] | select(.name | test("linux-gnu"))' | jq -r '.browser_download_url')
36
+ wget $jtd_codegen_archive_url -O jtd-codegen.zip
37
+ unzip jtd-codegen.zip
38
+
39
+ # Install jtd-codegen
40
+ chmod +x jtd-codegen
41
+ mv jtd-codegen .jtd-codegen/jtd-codegen
42
+ export PATH=$PATH:$(pwd)/.jtd-codegen
43
+
44
+ # Clean up
45
+ rm jtd-codegen.zip jtd-codegen
46
+
31
47
- run : poetry run poe test jtd_codebuild/tests
32
48
33
49
lint :
You can’t perform that action at this time.
0 commit comments