Skip to content

Commit 2c65df2

Browse files
authored
Merge pull request #26 from DilumAluthge-forks/dpa/dependabot-github-actions
CI: Multiple tweaks to the CI workflow file
2 parents 1a87476 + 2cb7fa3 commit 2c65df2

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,9 +7,13 @@ 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
fail-fast: false
1519
matrix:
@@ -21,14 +25,19 @@ jobs:
2125
- '1.10.7' # current LTS
2226
- '1.11.2' # currently the latest stable release
2327
steps:
24-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
31+
2532
- name: Setup Docker
2633
run: |
2734
docker version
2835
docker compose version
29-
docker build --build-arg JULIA_VERSION=${{matrix.version}} -t slurm-cluster-julia -f ci/Dockerfile .
36+
docker build --build-arg JULIA_VERSION="${MATRIX_VERSION:?}" -t slurm-cluster-julia -f ci/Dockerfile .
3037
docker compose -f ci/docker-compose.yml up -d
3138
docker ps
39+
env:
40+
MATRIX_VERSION: ${{matrix.version}}
3241
- name: Test Docker
3342
run: |
3443
docker exec -t slurmctld julia --version

0 commit comments

Comments
 (0)