43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: CI
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
test:
|
|
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
version:
|
|
- '1.0'
|
|
- '1.3'
|
|
os:
|
|
- ubuntu-latest
|
|
- macOS-latest
|
|
- windows-latest
|
|
arch:
|
|
- x64
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: julia-actions/setup-julia@latest
|
|
with:
|
|
version: ${{ matrix.version }}
|
|
arch: ${{ matrix.arch }}
|
|
- uses: julia-actions/julia-buildpkg@latest
|
|
- uses: julia-actions/julia-runtest@latest
|
|
docs:
|
|
name: Documentation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: julia-actions/setup-julia@latest
|
|
with:
|
|
version: '1.0'
|
|
- run: julia --project=docs -e '
|
|
using Pkg;
|
|
Pkg.develop(PackageSpec(; path=pwd()));
|
|
Pkg.instantiate();'
|
|
- run: julia --project=docs docs/make.jl
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|