Skip to content

Commit f0db78b

Browse files
authored
Merge pull request #36 from alyst/gh_actions_ci
Add GitHub Actions-based CI
2 parents 76c5640 + d9dc9bc commit f0db78b

4 files changed

Lines changed: 112 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
tags: '*'
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- '1.0'
19+
- '1' # automatically expands to the latest stable 1.x release of Julia
20+
- 'nightly'
21+
os:
22+
- ubuntu-latest
23+
arch:
24+
- x64
25+
include:
26+
- os: windows-latest
27+
version: '1'
28+
arch: x86
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: julia-actions/setup-julia@v1
32+
with:
33+
version: ${{ matrix.version }}
34+
arch: ${{ matrix.arch }}
35+
- uses: actions/cache@v1
36+
env:
37+
cache-name: cache-artifacts
38+
with:
39+
path: ~/.julia/artifacts
40+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
41+
restore-keys: |
42+
${{ runner.os }}-test-${{ env.cache-name }}-
43+
${{ runner.os }}-test-
44+
${{ runner.os }}-
45+
- uses: julia-actions/julia-buildpkg@v1
46+
- uses: julia-actions/julia-runtest@v1
47+
- uses: julia-actions/julia-processcoverage@v1
48+
- uses: codecov/codecov-action@v1
49+
with:
50+
file: lcov.info
51+
docs:
52+
name: Documentation
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v2
56+
- uses: julia-actions/setup-julia@v1
57+
with:
58+
version: '1'
59+
- run: |
60+
julia --project=docs -e '
61+
using Pkg
62+
Pkg.develop(PackageSpec(path=pwd()))
63+
Pkg.instantiate()'
64+
- run: julia --project=docs docs/make.jl
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/make.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Documenter, DBInterface
2+
3+
makedocs(;
4+
modules=[DBInterface],
5+
format=Documenter.HTML(),
6+
pages=[
7+
"Home" => "index.md",
8+
],
9+
repo="https://github.com/JuliaDatabases/DBInterface.jl/blob/{commit}{path}#L{line}",
10+
sitename="DBInterface.jl",
11+
authors="Jacob Quinn",
12+
assets=String[],
13+
)
14+
15+
deploydocs(;
16+
repo="github.com/JuliaDatabases/DBInterface.jl",
17+
)

docs/src/index.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# DBInterface.jl Documentation
2+
3+
```@contents
4+
```
5+
*DBInterface.jl* provides interface definitions to allow common database operations to be implemented consistently
6+
across various database packages.
7+
8+
## Functions
9+
```@docs
10+
DBInterface.connect
11+
DBInterface.prepare
12+
DBInterface.@prepare
13+
DBInterface.execute
14+
DBInterface.executemany
15+
DBInterface.executemultiple
16+
DBInterface.close!
17+
DBInterface.lastrowid
18+
```
19+
20+
## Types
21+
22+
```@docs
23+
DBInterface.Connection
24+
DBInterface.Statement
25+
DBInterface.Cursor
26+
```

0 commit comments

Comments
 (0)