mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
* add r echo api client sample * add r workflow * fix * add env * set r version * install curl * install dep * fix * comment out installation
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Samples R
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'samples/client/echo_api/r/**'
|
|
pull_request:
|
|
paths:
|
|
- 'samples/client/echo_api/r/**'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build R
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- 'samples/client/echo_api/r/'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup node.js
|
|
uses: actions/setup-node@v4
|
|
- name: Run echo server
|
|
run: |
|
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
(cd http-echo-server && npm install && npm start &)
|
|
- uses: r-lib/actions/setup-r@v2
|
|
with:
|
|
r-version: 3.6.1
|
|
- uses: r-lib/actions/setup-r-dependencies@v2
|
|
working-directory: ${{ matrix.sample }}
|
|
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
|