1919 - name : Set up Ruby
2020 uses : actions/setup-ruby@v1
2121 with :
22- ruby-version : ' 2.7'
22+ ruby-version : ' 3.1'
23+ bundler-cache : true
2324
2425 - name : Set up Python
2526 uses : actions/setup-python@v2
@@ -28,10 +29,12 @@ jobs:
2829
2930 - name : Install GitHub Pages, Bundler, and kramdown gems
3031 run : |
31- gem install github-pages bundler kramdown
32+ gem install github-pages bundler kramdown kramdown-parser-gfm
33+
3234 - name : Install Python modules
3335 run : |
3436 python3 -m pip install --upgrade pip setuptools wheel pyyaml==5.3.1 requests
37+
3538 - name : Checkout the lesson
3639 uses : actions/checkout@master
3740 with :
@@ -41,16 +44,18 @@ jobs:
4144 - name : Look for R-markdown files
4245 id : check-rmd
4346 run : |
44- echo "::set-output name=count::$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})"
47+ echo "count=$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})" >> $GITHUB_OUTPUT
48+
4549 - name : Set up R
4650 if : steps.check-rmd.outputs.count != 0
47- uses : r-lib/actions/setup-r@master
51+ uses : r-lib/actions/setup-r@v2
4852 with :
49- r-version : ' release'
53+ use-public-rspm : true
54+ install-r : false
5055
5156 - name : Cache R packages
5257 if : steps.check-rmd.outputs.count != 0
53- uses : actions/cache@v1
58+ uses : actions/cache@v2
5459 with :
5560 path : ${{ env.R_LIBS_USER }}
5661 key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
8085 do
8186 eval sudo $cmd
8287 done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "20.04"), sep = "\n")')
88+
8389 - name : Render the markdown and confirm that the site can be built
8490 run : make site
8591
@@ -105,5 +111,6 @@ jobs:
105111 git push origin gh-pages
106112 # return
107113 cd ..
114+
108115 - run : make lesson-check-all
109116 if : always()
0 commit comments