diff --git a/.github/workflows/samples-r-petstore.yaml b/.github/workflows/samples-r-petstore.yaml new file mode 100644 index 000000000000..a6ae1857a381 --- /dev/null +++ b/.github/workflows/samples-r-petstore.yaml @@ -0,0 +1,43 @@ +name: Samples R Petstore + +on: + push: + paths: + - 'samples/client/petstore/R/**' + pull_request: + paths: + - 'samples/client/petstore/R/**' + +jobs: + build: + name: Build R + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sample: + - 'samples/client/petstore/R/' + services: + petstore-api: + image: swaggerapi/petstore + ports: + - 80:8080 + env: + SWAGGER_HOST: http://petstore.swagger.io + SWAGGER_BASE_PATH: /v2 + steps: + - uses: actions/checkout@v4 + - uses: r-lib/actions/setup-r@v2 + with: + r-version: 3.6.1 + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + cache-version: 2 + - name: Install curl + run: sudo apt-get install -y r-cran-curl + - name: build and test + working-directory: ${{ matrix.sample }} + run: | + # export _R_CHECK_FORCE_SUGGESTS_=false + /bin/bash build_and_test.bash + shell: bash diff --git a/samples/client/petstore/R/.openapi-generator-ignore b/samples/client/petstore/R/.openapi-generator-ignore index deed424f8a15..c62bb4c1e169 100644 --- a/samples/client/petstore/R/.openapi-generator-ignore +++ b/samples/client/petstore/R/.openapi-generator-ignore @@ -21,3 +21,5 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +# +#