Skip to content

Add runtests.jl and github workflow for CI #41

Add runtests.jl and github workflow for CI

Add runtests.jl and github workflow for CI #41

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
tags: "*"
pull_request:
types: [unlabeled, opened, synchronize, reopened]
workflow_dispatch:
# Only trigger the job when `draft` label is not assigned to the PR
jobs:
build:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'draft') == false
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: "1.9"
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(url="https://github.com/bcube-project/Bcube.jl"), PackageSpec(path=pwd())]); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl