Skip to content

Commit

Permalink
Create github actions workflow ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmey authored Feb 3, 2024
1 parent 8cda414 commit 2ba3c93
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.10']
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
prefix: xvfb-run

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
show-versioninfo: 'true'

# Runs a single command using the runners shell
- name: Run a one-line script
run: julia -e 'println("Hello, World!")'

- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
prefix: ${{ matrix.prefix }}

0 comments on commit 2ba3c93

Please sign in to comment.