Skip to content

Commit

Permalink
Add Github Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed May 16, 2020
1 parent 025cf7e commit 9baa8ed
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.0', '1.4', 'nightly']
julia-arch: [x64]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v1.0.0
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- name: "Build package"
uses: julia-actions/julia-buildpkg@master
- name: "Run tests"
uses: julia-actions/julia-runtest@master
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ Linux and macOS: [![Build Status](https://travis-ci.org/JuliaLang/Example.jl.svg

Windows: [![Build Status](https://ci.appveyor.com/api/projects/status/github/JuliaLang/Example.jl?branch=master&svg=true)](https://ci.appveyor.com/project/tkelman/example-jl/branch/master)

Github Actions: ![Build status](https://github.com/JuliaLang/Example.jl/workflows/Run%20tests/badge.svg)

[![Coverage Status](https://coveralls.io/repos/JuliaLang/Example.jl/badge.svg?branch=master)](https://coveralls.io/r/JuliaLang/Example.jl?branch=master)
[![codecov.io](http://codecov.io/github/JuliaLang/Example.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaLang/Example.jl?branch=master)

0 comments on commit 9baa8ed

Please sign in to comment.