Skip to content

Commit 4ebdcc0

Browse files
committed
add r petstore github workflow
1 parent 1a178ae commit 4ebdcc0

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Samples R Petstore
2+
3+
on:
4+
push:
5+
paths:
6+
- 'samples/client/petstore/R/**'
7+
pull_request:
8+
paths:
9+
- 'samples/client/petstore/R/**'
10+
pull_request:
11+
12+
jobs:
13+
build:
14+
name: Build R
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
sample:
20+
- 'samples/client/petstore/R/'
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: r-lib/actions/setup-r@v2
24+
with:
25+
r-version: 3.6.1
26+
- uses: r-lib/actions/setup-r-dependencies@v2
27+
working-directory: ${{ matrix.sample }}
28+
with:
29+
cache-version: 2
30+
- name: Install curl
31+
run: sudo apt-get install -y r-cran-curl
32+
- name: build and test
33+
working-directory: ${{ matrix.sample }}
34+
run: |
35+
# export _R_CHECK_FORCE_SUGGESTS_=false
36+
/bin/bash build_and_test.bash
37+
shell: bash

samples/client/petstore/R/.openapi-generator-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
#
25+
#

0 commit comments

Comments
 (0)