Skip to content

Commit ee56cfe

Browse files
authored
Setup CI (#1)
1 parent 68c1146 commit ee56cfe

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
julia-version:
16+
- '1'
17+
- '1.6'
18+
- 'nightly'
19+
fail-fast: false
20+
name: Test Julia ${{ matrix.julia-version }}
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: julia-actions/setup-julia@v1
24+
with:
25+
version: ${{ matrix.julia-version }}
26+
- name: Install LLVM.jl
27+
run: |
28+
using Pkg
29+
Pkg.activate(".")
30+
Pkg.add(url = "https://github.com/maleadt/LLVM.jl")
31+
shell: julia --color=yes {0}
32+
- uses: julia-actions/julia-runtest@v1
33+
- uses: julia-actions/julia-processcoverage@v1
34+
- uses: codecov/codecov-action@v2
35+
with:
36+
file: ./lcov.info
37+
flags: Pkg.test
38+
name: codecov-umbrella
39+
40+
# https://github.com/tkf/julia-code-style-suggesters
41+
code-style:
42+
if: always() && github.event.pull_request
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: tkf/julia-code-style-suggesters@v1
46+
47+
# A job that succeeds if and only if all jobs succeed.
48+
all-success:
49+
if: always() && github.event.pull_request
50+
needs: [test, code-style]
51+
runs-on: ubuntu-latest
52+
steps:
53+
# https://github.com/tkf/merge-conclusions-action
54+
- uses: tkf/merge-conclusions-action@v1
55+
with:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)