Skip to content

add r petstore github workflow #1

add r petstore github workflow

add r petstore github workflow #1

name: Samples R Petstore

Check failure on line 1 in .github/workflows/samples-r-petstore.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/samples-r-petstore.yaml

Invalid workflow file

(Line: 10, Col: 3): 'pull_request' is already defined, (Line: 27, Col: 9): Unexpected value 'working-directory'
on:
push:
paths:
- 'samples/client/petstore/R/**'
pull_request:
paths:
- 'samples/client/petstore/R/**'
pull_request:
jobs:
build:
name: Build R
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sample:
- 'samples/client/petstore/R/'
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
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