Skip to content

Commit da2e52d

Browse files
jishnubdevmotion
andauthored
Add CI script to test on v1.6 and 1 (#9)
* Add CI script to test on v1.6 and 1 * Update .github/workflows/ci.yml Co-authored-by: David Widmann <[email protected]> --------- Co-authored-by: David Widmann <[email protected]>
1 parent d39f456 commit da2e52d

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/ci.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
concurrency:
4+
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
5+
cancel-in-progress: true
6+
7+
on:
8+
create:
9+
tags:
10+
push:
11+
branches:
12+
- main
13+
paths-ignore:
14+
- 'LICENSE'
15+
- 'README.md'
16+
- '.github/workflows/TagBot.yml'
17+
pull_request:
18+
paths-ignore:
19+
- 'LICENSE'
20+
- 'README.md'
21+
- '.github/workflows/TagBot.yml'
22+
jobs:
23+
pre_job:
24+
# continue-on-error: true # Uncomment once integration is finished
25+
runs-on: ubuntu-latest
26+
# Map a step output to a job output
27+
outputs:
28+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
29+
steps:
30+
- id: skip_check
31+
uses: fkirc/skip-duplicate-actions@v5
32+
33+
test:
34+
needs: pre_job
35+
if: needs.pre_job.outputs.should_skip != 'true'
36+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
37+
runs-on: ${{ matrix.os }}
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
version:
42+
- '1.6'
43+
- '1'
44+
os:
45+
- ubuntu-latest
46+
- macOS-latest
47+
- windows-latest
48+
arch:
49+
- x64
50+
steps:
51+
- uses: actions/checkout@v3
52+
- uses: julia-actions/setup-julia@v1
53+
with:
54+
version: ${{ matrix.version }}
55+
arch: ${{ matrix.arch }}
56+
- uses: actions/cache@v3
57+
env:
58+
cache-name: cache-artifacts
59+
with:
60+
path: ~/.julia/artifacts
61+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
62+
restore-keys: |
63+
${{ runner.os }}-test-${{ env.cache-name }}-
64+
${{ runner.os }}-test-
65+
${{ runner.os }}-
66+
- uses: julia-actions/julia-buildpkg@v1
67+
- uses: julia-actions/julia-runtest@v1
68+
- uses: julia-actions/julia-processcoverage@v1
69+
- uses: codecov/codecov-action@v3
70+
with:
71+
file: lcov.info

0 commit comments

Comments
 (0)