Skip to content

Commit 126e8c3

Browse files
ci: test action installs jtd-codegen
1 parent 771a5ae commit 126e8c3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/test-and-lint.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,25 @@ jobs:
2525
path: .venv
2626
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
2727

28-
- if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
28+
- id: install-dependencies
29+
if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
2930
run: poetry install
3031

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+
3147
- run: poetry run poe test jtd_codebuild/tests
3248

3349
lint:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy