Skip to content

Include charts in test project (#21) #21

Include charts in test project (#21)

Include charts in test project (#21) #21

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-20.04, windows-latest]
steps:
- uses: actions/checkout@master
- uses: r-lib/actions/setup-r@v1
name: Setup R - Windows / macOS
if: matrix.os != 'ubuntu-20.04'
with:
r-version: '4.0.2'
- name: Set R_HOME environment variable
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
mkdir -p ~/.local/lib/R
echo "R_LIBS_USER=~/.local/lib/R" >> "$GITHUB_ENV"
echo "R_HOME=$(R RHOME)" >> "$GITHUB_ENV"
elif [ "$RUNNER_OS" == "macOS" ]; then
echo "R_HOME=$(R RHOME)" >> "$GITHUB_ENV"
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "R_HOME=$(R RHOME)" >> "$GITHUB_ENV"
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash
- name: Verify R Home
run: |
Rscript -e 'R.home()'
echo "${{ env.R_HOME }}"
- name: Install R package dependencies
run: Rscript -e "install.packages(c('ggplot2', 'zoo'), repos = 'http://cran.us.r-project.org')"
shell: bash
- name: Test F# scripts
run: dotnet fsi citest.fsx
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore tool dependencies
run: dotnet tool restore
- name: Restore paket dependencies
run: dotnet paket restore
- name: Restore dependencies
run: dotnet restore bristlecone.sln
- name: Build
run: dotnet fake build -t All
- name: Deploy documentation from master
if: matrix.os == 'macos-latest'
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: gh-pages
force_orphan: true
- name: Examine bin
run: ls -r bin
- name: Publish NuGets (if this version not published before)
if: matrix.os == 'macos-latest'
run: dotnet nuget push bin/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGETKEY }} --skip-duplicate