You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Action to set up Graphviz cross-platform(Linux, macOS, Windows).
Example usage
With ts-graphviz/setup-graphviz, you can set up a GitHub Action environment
that allows you to use Graphviz on all operating systems.
name: Graphviz CIon: [push]jobs:
test:
name: Test on node ${{ matrix.node-version }} and ${{ matrix.os }}runs-on: ${{ matrix.os }}strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]steps:
- uses: actions/checkout@v4
- name: Setup Graphvizuses: ts-graphviz/setup-graphviz@v2...# In the steps below this you can use Graphviz dot command.
If you want a fixed version of Graphviz,
you can specify a specific version for each operating system (not macOS).
- name: Setup Graphvizuses: ts-graphviz/setup-graphviz@v2with:
# graphviz version on Ubuntu.ubuntu-graphviz-version: '2.42.2-3build2'# libgraphviz-dev version on Ubuntu.ubuntu-libgraphvizdev-version: '2.42.2-3build2'# Skip to run apt update command on Ubuntu.ubuntu-skip-apt-update: 'true'# default false# graphviz version on Windows.windows-graphviz-version: '2.49.3'# Skip to run brew update command on macOS.macos-skip-brew-update: 'true'# default false