Skip to content

Merge pull request #5 from JuliaWeb/get-error #35

Merge pull request #5 from JuliaWeb/get-error

Merge pull request #5 from JuliaWeb/get-error #35

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags: ['*']
pull_request:
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
permissions:
actions: write
contents: read
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.allow_failure }}
strategy:
fail-fast: false
matrix:
version:
- '1.9'
- '1'
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
include:
- version: '1.9'
allow_failure: false
- version: '1'
allow_failure: false
- version: 'nightly'
allow_failure: true
steps:
- uses: actions/checkout@v4
# Install test dependencies
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: expect
version: 1.0
# Install Julia
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
# Cache everything
- uses: julia-actions/cache@v1
# Run the tests
- uses: julia-actions/julia-runtest@latest
docs:
name: Documentation
permissions:
actions: write
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install Julia and dependencies
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- uses: julia-actions/cache@v1
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --project=docs/ docs/make.jl