Skip to content

Commit 4a6fee8

Browse files
committed
[CI] Reorganise GitHub Actions setup
* move directory to the right name * remove reference to `master` branch * add `paths` triggers * add concurrency groups * update `actions/checkout` workflow to latest version
1 parent 26ec179 commit 4a6fee8

File tree

2 files changed

+59
-35
lines changed

2 files changed

+59
-35
lines changed

.github/actions/CI.yml

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

.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)