This repository was archived by the owner on Oct 6, 2025. It is now read-only.
docs: make repo readonly archived #27
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
name: R-CMD-check | ||
env: | ||
LOOKERSDK_BASE_URL: https://localhost:20000 | ||
LOOKERSDK_VERIFY_SSL: false | ||
LOOKERSDK_API_VERSION: "4.0" | ||
LOOKERSDK_CLIENT_ID: ${{ secrets.LOOKERSDK_CLIENT_ID }} | ||
LOOKERSDK_CLIENT_SECRET: ${{ secrets.LOOKERSDK_CLIENT_SECRET }} | ||
jobs: | ||
setup: | ||
uses: looker-open-source/reusable-actions/.github/workflows/primary-version.yml@main | ||
R-CMD-check: | ||
needs: setup | ||
runs-on: ${{ matrix.config.os }} | ||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
#- {os: macOS-latest, r: 'release'} | ||
#- {os: windows-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | ||
#- {os: ubuntu-latest, r: 'release'} | ||
#- {os: ubuntu-latest, r: 'oldrel-1'} | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/[email protected] | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID }} | ||
service_account_key: ${{ secrets.GCP_AR_READER_SA_KEY }} | ||
export_default_credentials: true | ||
- name: Authenticate Artifact Repository | ||
run: gcloud auth configure-docker us-west1-docker.pkg.dev --quiet | ||
- name: Pull and run Looker docker image | ||
# TODO: can we cache some layers of the image for faster download? | ||
# we probably don't want to cache the final image for IP security... | ||
run: | | ||
docker pull --quiet us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/${{ fromJson(needs.setup.outputs.matrix_json)[0] }} | ||
# set $LOOKER_OPTS to --no-ssl if we want to turn off ssl | ||
docker run --name looker-sdk-codegen-ci -d -p 10000:9999 -p 20000:19999 us-west1-docker.pkg.dev/cloud-looker-sdk-codegen-cicd/looker/${{ fromJson(needs.setup.outputs.matrix_json)[0] }} | ||
docker logs -f looker-sdk-codegen-ci --until=30s & | ||
- uses: r-lib/actions/setup-pandoc@v1 | ||
- uses: r-lib/actions/setup-r@v1 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
http-user-agent: ${{ matrix.config.http-user-agent }} | ||
use-public-rspm: true | ||
- uses: r-lib/actions/setup-r-dependencies@v1 | ||
with: | ||
extra-packages: rcmdcheck | ||
- name: Check that Looker Docker image is ready | ||
run: | | ||
${{ github.workspace }}/.github/scripts/wait_for_looker.sh | ||
- uses: r-lib/actions/check-r-package@v1 | ||
- name: Show testthat output | ||
if: always() | ||
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true | ||
shell: bash | ||
- name: Upload check results | ||
if: failure() | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results | ||
path: check: | ||