Skip to content

Commit da833f4

Browse files
committed
CI: Multiple tweaks to the CI workflow file
1 parent 773a5d4 commit da833f4

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 100
8+
labels:
9+
- "dependencies"
10+
- "github-actions"

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,33 @@ on:
77
- master
88
- develop
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
runs-on: ubuntu-latest
16+
timeout-minutes: 20
1317
strategy:
1418
matrix:
1519
version:
1620
- '1.0.5'
1721
- '1.5.4'
1822
- '1.6.0'
1923
steps:
20-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
27+
2128
- name: Setup Docker
2229
run: |
2330
docker version
2431
docker compose version
25-
docker build --build-arg JULIA_VERSION=${{matrix.version}} -t slurm-cluster-julia -f ci/Dockerfile .
32+
docker build --build-arg JULIA_VERSION="${MATRIX_VERSION:?}" -t slurm-cluster-julia -f ci/Dockerfile .
2633
docker compose -f ci/docker-compose.yml up -d
2734
docker ps
35+
env:
36+
MATRIX_VERSION: ${{matrix.version}}
2837
- name: Test Docker
2938
run: |
3039
docker exec -t slurmctld julia --version

0 commit comments

Comments
 (0)