Skip to content

Commit c1c1c7a

Browse files
committed
Add super basic tests and CI
1 parent 6c3c9f9 commit c1c1c7a

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: "main"
6+
tags: ["*"]
7+
pull_request:
8+
release:
9+
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
julia-version:
18+
- "1.3"
19+
- "1.4"
20+
- "1.5"
21+
os:
22+
- ubuntu-latest
23+
julia-arch:
24+
- x64
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: julia-actions/setup-julia@v1
28+
with:
29+
version: ${{ matrix.julia-version }}
30+
arch: ${{ matrix.julia-arch }}
31+
- name: Cache artifacts
32+
uses: actions/cache@v2
33+
env:
34+
cache-name: cache-artifacts
35+
with:
36+
path: ~/.julia/artifacts
37+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38+
restore-keys: |
39+
${{ runner.os }}-test-${{ env.cache-name }}-
40+
${{ runner.os }}-test-
41+
${{ runner.os }}-
42+
- uses: julia-actions/julia-buildpkg@latest
43+
- uses: julia-actions/julia-runtest@latest
44+
- uses: julia-actions/julia-uploadcodecov@v0.1
45+
continue-on-error: true
46+
- uses: julia-actions/julia-uploadcoveralls@v0.1
47+
continue-on-error: true

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
using LazyArtifacts

0 commit comments

Comments
 (0)