Skip to content

Commit cfe3695

Browse files
authored
Update versions in GitHub actions (#559)
1 parent 4112950 commit cfe3695

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,23 @@ 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: 'Gurobi'
1014
runs-on: 'ubuntu-latest'
1115
strategy:
1216
fail-fast: false
1317
steps:
14-
- uses: actions/checkout@v2
15-
- uses: julia-actions/setup-julia@v1
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v2
1620
with:
1721
version: '1'
1822
arch: 'x64'
19-
- uses: actions/cache@v1
20-
env:
21-
cache-name: cache-artifacts
22-
with:
23-
path: ~/.julia/artifacts
24-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
25-
restore-keys: |
26-
${{ runner.os }}-test-${{ env.cache-name }}-
27-
${{ runner.os }}-test-
28-
${{ runner.os }}-
23+
- uses: julia-actions/cache@v1
2924
- shell: bash
3025
env:
3126
WLSLICENSE: ${{ secrets.WLSLICENSE }}
@@ -35,6 +30,7 @@ jobs:
3530
- uses: julia-actions/julia-buildpkg@v1
3631
- uses: julia-actions/julia-runtest@v1
3732
- uses: julia-actions/julia-processcoverage@v1
38-
- uses: codecov/codecov-action@v1
33+
- uses: codecov/codecov-action@v4
3934
with:
4035
file: lcov.info
36+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/format_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ 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: |
2020
using Pkg
21-
Pkg.add(PackageSpec(name="JuliaFormatter", version="0.22.10"))
21+
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
2222
using JuliaFormatter
2323
format("src/MOI_wrapper", verbose=true)
2424
format("test", verbose=true)

0 commit comments

Comments
 (0)