Skip to content

Commit 1769e86

Browse files
authored
Github actions for CI and documentation (#14)
* Try out Github actions for CI and documentation with push_preview * Remove travis and appveyor CI config * Update README with GitHubActions-based CI badge
1 parent 31aa320 commit 1769e86

File tree

6 files changed

+62
-77
lines changed

6 files changed

+62
-77
lines changed

.appveyor.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags: '*'
7+
pull_request:
8+
jobs:
9+
test:
10+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
version:
15+
- '1.0'
16+
- '1.3'
17+
os:
18+
- ubuntu-latest
19+
- macOS-latest
20+
- windows-latest
21+
arch:
22+
- x64
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: julia-actions/setup-julia@latest
26+
with:
27+
version: ${{ matrix.version }}
28+
arch: ${{ matrix.arch }}
29+
- uses: julia-actions/julia-buildpkg@latest
30+
- uses: julia-actions/julia-runtest@latest
31+
- uses: julia-actions/julia-uploadcodecov@latest
32+
env:
33+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
34+
docs:
35+
name: Documentation
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v1
39+
- uses: julia-actions/setup-julia@latest
40+
with:
41+
version: '1.3'
42+
- run: julia --project=docs -e '
43+
using Pkg;
44+
Pkg.develop(PackageSpec(; path=pwd()));
45+
Pkg.instantiate();'
46+
- run: julia --project=docs docs/make.jl
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
# Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177
50+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://c42f.github.io/TerminalLoggers.jl/stable)
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://c42f.github.io/TerminalLoggers.jl/dev)
5-
[![Build Status](https://travis-ci.org/c42f/TerminalLoggers.jl.svg?branch=master)](https://travis-ci.org/c42f/TerminalLoggers.jl)
6-
[![Build Status](https://ci.appveyor.com/api/projects/status/github/c42f/TerminalLoggers.jl?svg=true)](https://ci.appveyor.com/project/c42f/TerminalLoggers-jl)
5+
[![Build Status](https://github.com/c42f/TerminalLoggers.jl/workflows/CI/badge.svg)](https://github.com/c42f/TerminalLoggers.jl/actions?query=workflow%3ACI)
76
[![Codecov](https://codecov.io/gh/c42f/TerminalLoggers.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/c42f/TerminalLoggers.jl)
87

98
`TerminalLoggers` contains user interface utilities for displaying log messages

docs/Manifest.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1818
version = "0.8.1"
1919

2020
[[Documenter]]
21-
deps = ["Base64", "DocStringExtensions", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"]
22-
git-tree-sha1 = "d45c163c7a3ae293c15361acc52882c0f853f97c"
21+
deps = ["Base64", "Dates", "DocStringExtensions", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"]
22+
git-tree-sha1 = "51f0c7df46abb9c07d80e529718951e634670afb"
2323
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
24-
version = "0.23.4"
24+
version = "0.24.4"
2525

2626
[[InteractiveUtils]]
2727
deps = ["Markdown"]
@@ -36,6 +36,9 @@ version = "0.21.0"
3636
[[LibGit2]]
3737
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
3838

39+
[[Libdl]]
40+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
41+
3942
[[Logging]]
4043
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
4144

@@ -48,12 +51,12 @@ uuid = "a63ad114-7e13-5084-954f-fe012c677804"
4851

4952
[[Parsers]]
5053
deps = ["Dates", "Test"]
51-
git-tree-sha1 = "ef0af6c8601db18c282d092ccbd2f01f3f0cd70b"
54+
git-tree-sha1 = "0139ba59ce9bc680e2925aec5b7db79065d60556"
5255
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
53-
version = "0.3.7"
56+
version = "0.3.10"
5457

5558
[[Pkg]]
56-
deps = ["Dates", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
59+
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Test", "UUIDs"]
5760
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
5861

5962
[[Printf]]

docs/make.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ makedocs(;
88
],
99
repo="https://github.com/c42f/TerminalLoggers.jl/blob/{commit}{path}#L{line}",
1010
sitename="TerminalLoggers.jl",
11-
authors="Chris Foster <[email protected]>",
12-
assets=String[],
11+
authors="Chris Foster <[email protected]>"
1312
)
1413

1514
deploydocs(;
1615
repo="github.com/c42f/TerminalLoggers.jl",
16+
push_preview=true
1717
)

0 commit comments

Comments
 (0)