Skip to content

Commit beb35fc

Browse files
committed
Add CI
1 parent 5d3e081 commit beb35fc

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
File renamed without changes.

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
jobs:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
version: ['1.6', '1'] # Test against LTS and current minor release
15+
os: [ubuntu-latest, macOS-latest, windows-latest]
16+
arch: [x64]
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: julia-actions/setup-julia@v1
20+
with:
21+
version: ${{ matrix.version }}
22+
arch: ${{ matrix.arch }}
23+
- uses: actions/cache@v1
24+
env:
25+
cache-name: cache-artifacts
26+
with:
27+
path: ~/.julia/artifacts
28+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
29+
restore-keys: |
30+
${{ runner.os }}-test-${{ env.cache-name }}-
31+
${{ runner.os }}-test-
32+
${{ runner.os }}-
33+
- uses: julia-actions/julia-buildpkg@v1
34+
- uses: julia-actions/julia-runtest@v1
35+
- uses: julia-actions/julia-processcoverage@v1
36+
- uses: codecov/codecov-action@v1
37+
with:
38+
file: lcov.info

0 commit comments

Comments
 (0)