Skip to content

Commit 777d716

Browse files
committed
CI: Add CompatHelper
1 parent 86edf9f commit 777d716

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
CompatHelper:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Get Julia compatibility
14+
id: julia_compat
15+
# NOTE: this requires a Julia compat lower-bound with minor version!
16+
run : |
17+
version=$(grep '^julia = ' Project.toml | grep -o '".*"' | cut -d '"' -f2)
18+
echo "::set-output name=version::$version"
19+
- uses: julia-actions/setup-julia@v1
20+
with:
21+
version: ${{ steps.julia_compat.outputs.version }}
22+
- name: Install CompatHelper
23+
run: |
24+
import Pkg
25+
name = "CompatHelper"
26+
version = "2"
27+
Pkg.add(; name, version)
28+
shell: julia --color=yes {0}
29+
- name: Run CompatHelper
30+
run: |
31+
using CompatHelper
32+
CompatHelper.main()
33+
shell: julia --color=yes {0}
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)