Skip to content

Commit a84c184

Browse files
authored
Merge pull request #2 from DilumAluthge/dpa/github-actions-ci
CI: Migrate from Travis to GitHub Actions
2 parents 6a08593 + 8e4a864 commit a84c184

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
concurrency:
9+
# Skip intermediate builds: all builds except for builds on the `master` branch
10+
# Cancel intermediate builds: only pull request builds
11+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
permissions:
14+
contents: read
15+
jobs:
16+
test:
17+
runs-on: ${{ matrix.os }}
18+
timeout-minutes: 30
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
version:
23+
- '1.3' # minimum supported version
24+
- '1.6' # current LTS
25+
- '1'
26+
- 'nightly'
27+
os:
28+
- ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: julia-actions/setup-julia@v1
32+
with:
33+
version: ${{ matrix.version }}
34+
- uses: julia-actions/julia-buildpkg@v1
35+
- uses: julia-actions/julia-runtest@v1
36+
shell: julia --color=yes --project {0}
37+
- uses: julia-actions/julia-processcoverage@v1
38+
- uses: codecov/codecov-action@v1
39+
with:
40+
file: lcov.info
41+
- uses: codecov/codecov-action@v1
42+
with:
43+
file: lcov.info
44+
docs:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
- uses: julia-actions/setup-julia@v1
49+
with:
50+
version: '1'
51+
- run: |
52+
import Pkg
53+
Pkg.develop(Pkg.PackageSpec(path=pwd()))
54+
Pkg.instantiate()
55+
Pkg.precompile()
56+
shell: julia --color=yes --project=docs {0}
57+
- name: Run the doctests
58+
run: |
59+
import Documenter
60+
import PersistentCollections
61+
Documenter.doctest(PersistentCollections)
62+
shell: julia --color=yes --project=docs {0}
63+
- run: julia --project=docs docs/make.jl
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)