File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 30
30
run : poetry install
31
31
32
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 -f jtd-codegen.zip
33
+ run : source ./ci/install-jtd-codegen.sh
46
34
47
35
- run : poetry run poe test jtd_codebuild/tests
48
36
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Download and unpack jtd-codegen
4
+ 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' )
5
+ wget $jtd_codegen_archive_url -O jtd-codegen.zip
6
+ unzip jtd-codegen.zip
7
+
8
+ # Install jtd-codegen
9
+ chmod +x jtd-codegen
10
+ mkdir -p .jtd-codegen
11
+ mv jtd-codegen .jtd-codegen/jtd-codegen
12
+ export PATH=$PATH :$( pwd) /.jtd-codegen
13
+
14
+ # Clean up
15
+ rm -f jtd-codegen.zip
You can’t perform that action at this time.
0 commit comments