Skip to content

CI

CI #88

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: 0 0 1 * *
jobs:
test:
name: ${{ matrix.lisp }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
BUILD_DOCS: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.lisp == 'sbcl-bin' }}
strategy:
matrix:
lisp: [sbcl-bin, ccl-bin]
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- name: Logging
run: |
echo BUILD_DOCS ${{env.BUILD_DOCS}}
echo ${{ github.event_name == 'push' }} ${{ github.ref == 'refs/heads/master' }} ${{ matrix.os == 'ubuntu-latest' }} ${{ matrix.lisp == 'sbcl-bin' }}
- uses: actions/checkout@v2
- name: Set LISP env var
run: echo "LISP=${{ matrix.lisp }}" >> $GITHUB_ENV
- uses: 40ants/setup-lisp@v2
- name: Run tests (Non-Windows)
if: runner.os != 'Windows'
shell: bash
run: roswell/run-fiveam.ros -l ci-utils/test :github-actions-tests :noncoveralls-tests :base-tests
- name: Run tests (Windows)
if: runner.os == 'Windows'
shell: msys2 {0}
run: roswell/run-fiveam.ros -l ci-utils/test :github-actions-tests :noncoveralls-tests :base-tests
- name: Build Docs
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.lisp == 'sbcl-bin'
run: |
ros install neil-lindquist/doc-site-generator
copy-site-base docs docs-bin
echo 'The documentation page for the CI-Utils Common Lisp library.' | make-gh-page README.md docs-bin/index.md
./generate-API-docs.ros
- name: Deploy Docs
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.lisp == 'sbcl-bin'
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: docs-bin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}