Skip to content

Commit c1f02f1

Browse files
authored
Merge pull request #303 from odow/od/actions
Update GitHub action workflows
2 parents 01d87f9 + e4c420b commit c1f02f1

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
lines changed

Diff for: .github/workflows/MINLP.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches: [master]
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
# needed to allow julia-actions/cache to delete old caches that it has created
8+
permissions:
9+
actions: write
10+
contents: read
711
jobs:
812
test:
913
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -15,21 +19,12 @@ jobs:
1519
os: [ubuntu-latest, macOS-latest]
1620
arch: [x64]
1721
steps:
18-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
1923
- uses: julia-actions/setup-julia@v2
2024
with:
2125
version: ${{ matrix.version }}
2226
arch: ${{ matrix.arch }}
23-
- uses: actions/cache@v1
24-
env:
25-
cache-name: cache-artifacts
26-
with:
27-
path: ~/.julia/artifacts
28-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
29-
restore-keys: |
30-
${{ runner.os }}-test-${{ env.cache-name }}-
31-
${{ runner.os }}-test-
32-
${{ runner.os }}-
27+
- uses: julia-actions/cache@v2
3328
- uses: julia-actions/julia-buildpkg@v1
3429
- shell: bash
3530
run: julia -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.activate("test/MINLPTests"); Pkg.instantiate()'

Diff for: .github/workflows/TagBot.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
57
jobs:
68
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
710
runs-on: ubuntu-latest
811
steps:
912
- uses: JuliaRegistries/TagBot@v1

Diff for: .github/workflows/ci.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches: [master]
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
# needed to allow julia-actions/cache to delete old caches that it has created
8+
permissions:
9+
actions: write
10+
contents: read
711
jobs:
812
test:
913
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -15,24 +19,15 @@ jobs:
1519
os: [ubuntu-latest, macOS-latest]
1620
arch: [x64]
1721
steps:
18-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
1923
- uses: julia-actions/setup-julia@v2
2024
with:
2125
version: ${{ matrix.version }}
2226
arch: ${{ matrix.arch }}
23-
- uses: actions/cache@v1
24-
env:
25-
cache-name: cache-artifacts
26-
with:
27-
path: ~/.julia/artifacts
28-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
29-
restore-keys: |
30-
${{ runner.os }}-test-${{ env.cache-name }}-
31-
${{ runner.os }}-test-
32-
${{ runner.os }}-
27+
- uses: julia-actions/cache@v2
3328
- uses: julia-actions/julia-buildpkg@v1
3429
- uses: julia-actions/julia-runtest@v1
3530
- uses: julia-actions/julia-processcoverage@v1
36-
- uses: codecov/codecov-action@v1
31+
- uses: codecov/codecov-action@v4
3732
with:
3833
file: lcov.info

Diff for: .github/workflows/format_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: julia-actions/setup-julia@latest
1414
with:
1515
version: '1'
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Format check
1818
shell: julia --color=yes {0}
1919
run: |

0 commit comments

Comments
 (0)