Skip to content

Commit fe93cd7

Browse files
authored
Merge pull request #1 from vchuravy/mg/ci
[CI] Reorganise GitHub Actions setup
2 parents 26ec179 + 0daa220 commit fe93cd7

File tree

3 files changed

+66
-35
lines changed

3 files changed

+66
-35
lines changed

.github/actions/CI.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "weekly"

.github/workflows/UnitTests.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/UnitTests.yml'
9+
- 'ext/**'
10+
- 'src/**'
11+
- 'test/**'
12+
- 'Project.toml'
13+
pull_request:
14+
paths:
15+
- '.github/workflows/UnitTests.yml'
16+
- 'ext/**'
17+
- 'src/**'
18+
- 'test/**'
19+
- 'Project.toml'
20+
21+
# needed to allow julia-actions/cache to delete old caches that it has created
22+
permissions:
23+
actions: write
24+
contents: read
25+
26+
concurrency:
27+
# Skip intermediate builds: always.
28+
# Cancel intermediate builds: always.
29+
group: ${{ github.workflow }}-${{ github.ref }}
30+
cancel-in-progress: true
31+
32+
jobs:
33+
test:
34+
runs-on: ${{ matrix.os }}
35+
strategy:
36+
matrix:
37+
julia-version:
38+
- 'min'
39+
- '1'
40+
- 'pre'
41+
julia-arch:
42+
- x64
43+
- x86
44+
os:
45+
- ubuntu-latest
46+
- windows-latest
47+
- macOS-latest
48+
exclude:
49+
- os: macOS-latest
50+
julia-arch: x86
51+
52+
steps:
53+
- uses: actions/checkout@v5
54+
- uses: julia-actions/setup-julia@v2
55+
with:
56+
version: ${{ matrix.julia-version }}
57+
arch: ${{ matrix.julia-arch }}
58+
- uses: julia-actions/cache@v2
59+
- uses: julia-actions/julia-runtest@v1

0 commit comments

Comments
 (0)