Skip to content

Commit 237e401

Browse files
committed
add workflow to test crystal client
1 parent 2d3082a commit 237e401

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Samples Crystal clients
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/crystal/**
7+
pull_request:
8+
paths:
9+
- samples/client/petstore/crystal/**
10+
jobs:
11+
build:
12+
name: Build Crystal projects
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
sample:
18+
# clients
19+
- samples/client/petstore/crystal/
20+
services:
21+
petstore-api:
22+
image: swaggerapi/petstore
23+
ports:
24+
- 80:8080
25+
env:
26+
SWAGGER_HOST: http://petstore.swagger.io
27+
SWAGGER_BASE_PATH: /v2
28+
steps:
29+
- uses: actions/checkout@v5
30+
- name: Install Crystal
31+
uses: crystal-lang/install-crystal@v1
32+
- name: Run tests
33+
run: crystal spec
34+
working-directory: ${{ matrix.sample }}

0 commit comments

Comments
 (0)