Skip to content

Commit dfe103c

Browse files
authored
set up github ci (#24)
* set up github ci * use xvfb in testing * build package * add build step to ci * remove old config files
1 parent a5fe1a9 commit dfe103c

File tree

5 files changed

+44
-84
lines changed

5 files changed

+44
-84
lines changed

.github/workflows/ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- '1.0' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
14+
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
15+
- 'nightly'
16+
os:
17+
- ubuntu-latest
18+
arch:
19+
- x64
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: ${{ matrix.version }}
25+
arch: ${{ matrix.arch }}
26+
- uses: actions/cache@v1
27+
env:
28+
cache-name: cache-artifacts
29+
with:
30+
path: ~/.julia/artifacts
31+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
32+
restore-keys: |
33+
${{ runner.os }}-test-${{ env.cache-name }}-
34+
${{ runner.os }}-test-
35+
${{ runner.os }}-
36+
- uses: GabrielBB/xvfb-action@v1
37+
with:
38+
run: julia --project=@. -e "using Pkg; Pkg.build(); Pkg.test(coverage=true)"
39+
- uses: julia-actions/julia-processcoverage@v1
40+
- uses: codecov/codecov-action@v1
41+
with:
42+
file: lcov.info

.travis.yml

-35
This file was deleted.

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ WebIO = "0.8"
1818
julia = "0.7, 1"
1919

2020
[extras]
21-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2221
Blink = "ad839575-38b3-5650-b840-f874b8c74a25"
22+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2323

2424
[targets]
2525
test = ["Blink", "Test"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Knockout
2-
[![Build Status](https://travis-ci.org/JuliaGizmos/Knockout.jl.svg?branch=master)](https://travis-ci.org/JuliaGizmos/Knockout.jl) [![codecov](https://codecov.io/gh/JuliaGizmos/Knockout.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaGizmos/Knockout.jl)
2+
[![CI](https://github.com/JuliaGizmos/Knockout.jl/workflows/CI/badge.svg?branch=master)](https://github.com/JuliaGizmos/Knockout.jl/actions?query=workflow%3ACI+branch%3Amaster) [![codecov](https://codecov.io/gh/JuliaGizmos/Knockout.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaGizmos/Knockout.jl)
33

44
A Julia wrapper for [Knockout.js](http://knockoutjs.com/). It uses [WebIO](https://github.com/JuliaGizmos/WebIO.jl) to load JavaScript and to do Julia to JS communication. [Go here](https://github.com/JuliaGizmos/WebIO.jl/blob/master/README.md) to get started with WebIO.
55

appveyor.yml

-47
This file was deleted.

0 commit comments

Comments
 (0)