-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.42 KB
/
CI.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-FileCopyrightText: 2023 Shun Sakai
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
name: CI
on:
pull_request:
push:
branches:
- "develop"
- "master"
schedule:
- cron: "0 0 * * 0"
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-24.04
- macos-14
- windows-2022
version:
- "1.0" # minimum supported Julia version
- "1" # automatically expands to the latest stable release of Julia
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Julia environment
uses: julia-actions/[email protected]
with:
version: ${{ matrix.version }}
arch: "x64"
- name: Build a package
uses: julia-actions/[email protected]
- name: Run tests
uses: julia-actions/[email protected]
fmt:
name: Format
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Julia environment
uses: julia-actions/[email protected]
with:
version: "1" # automatically expands to the latest stable release of Julia
- name: Check code formatted
run: |
julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
julia -e 'using JuliaFormatter; JuliaFormatter.format(".", verbose = true)'
git diff --exit-code