Skip to content

BREAKING: repository structure change #60

BREAKING: repository structure change

BREAKING: repository structure change #60

Workflow file for this run

name: test for install R from source
on:
pull_request:
branches:
- master
paths:
- scripts/install_R_source.sh
- scripts/setup_R.sh
- scripts/bin/**
- build/templates/dockerfiles/r-ver.Dockerfile.txt
- "!**.md"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
# TODO: use the latest tag automatically
tag:
- "devel"
- "4.3.3"
platforms:
- linux/amd64
steps:
- uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
- name: test build
run: |
docker buildx bake \
-f bakefiles/"${{ matrix.tag }}".docker-bake.json \
--set=*.platform="${{ matrix.platforms }}" \
--set=*.cache-from=docker.io/rocker/r-ver:"${{ matrix.tag }}" \
--set=*.cache-from=type=gha,scope=r-ver-"${{ matrix.tag }}" \
--set=*.cache-to=type=gha,scope=r-ver-"${{ matrix.tag }}" \
--set=r-ver.tags=r-ver-test-"${{ matrix.tag }}" \
--load \
r-ver
- name: inspect image
run: |
make inspect-image/r-ver-test-"${{ matrix.tag }}"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: tmp
path: tmp
regression-test:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# TODO: use the latest tag automatically
tag:
- "4.3.3"
platforms:
- linux/amd64
script:
- install_rstudio.sh
- install_tidyverse.sh
- install_verse.sh
- install_shiny_server.sh
- install_geospatial.sh
steps:
- uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
- name: test build
run: |
docker buildx bake \
-f bakefiles/"${{ matrix.tag }}".docker-bake.json \
--set=*.platform="${{ matrix.platforms }}" \
--set=*.cache-from=docker.io/rocker/r-ver:"${{ matrix.tag }}" \
--set=*.cache-from=type=gha,scope=r-ver-"${{ matrix.tag }}" \
--set=*.cache-to=type=gha,scope=r-ver-"${{ matrix.tag }}" \
--set=r-ver.tags=r-ver-test-"${{ matrix.tag }}" \
--load \
r-ver
- name: test run rocker scripts
run: |
docker run --rm r-ver-test-"${{ matrix.tag }}" "/rocker_scripts/${{ matrix.script }}"