Skip to content

Commit e69883b

Browse files
authored
Update versions in GitHub actions (#447)
1 parent c986eed commit e69883b

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

.github/workflows/ci.yml

+9-13
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: CPLEX${{ matrix.cplex_version}} Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -16,21 +20,12 @@ jobs:
1620
arch: [x64]
1721
cplex_version: ['12100', '2010', '2210']
1822
steps:
19-
- uses: actions/checkout@v2
20-
- uses: julia-actions/setup-julia@v1
23+
- uses: actions/checkout@v4
24+
- uses: julia-actions/setup-julia@v2
2125
with:
2226
version: ${{ matrix.version }}
2327
arch: ${{ matrix.arch }}
24-
- uses: actions/cache@v1
25-
env:
26-
cache-name: cache-artifacts
27-
with:
28-
path: ~/.julia/artifacts
29-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
30-
restore-keys: |
31-
${{ runner.os }}-test-${{ env.cache-name }}-
32-
${{ runner.os }}-test-
33-
${{ runner.os }}-
28+
- uses: julia-actions/cache@v1
3429
- uses: julia-actions/julia-buildpkg@v1
3530
env:
3631
SECRET_CPLEX_URL_12100: ${{ secrets.CPLEX_URL_12100 }}
@@ -39,6 +34,7 @@ jobs:
3934
CPLEX_VERSION: ${{ matrix.cplex_version }}
4035
- uses: julia-actions/julia-runtest@v1
4136
- uses: julia-actions/julia-processcoverage@v1
42-
- uses: codecov/codecov-action@v1
37+
- uses: codecov/codecov-action@v4
4338
with:
4439
file: lcov.info
40+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/format_check.yml

+2-2
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.15.11"))
21+
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
2222
using JuliaFormatter
2323
format("src/MOI", verbose=true)
2424
format_file("src/CPLEX.jl")

0 commit comments

Comments
 (0)