From 2cb7fa3e453da439b5165c120b01b7e5275a3226 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Mon, 30 Dec 2024 10:32:43 -0500 Subject: [PATCH] CI: Multiple tweaks to the CI workflow file --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/ci.yml | 13 +++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7c1e3b9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + open-pull-requests-limit: 100 + labels: + - "dependencies" + - "github-actions" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4994ec8..c8c925c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,13 @@ on: - master - develop +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest + timeout-minutes: 20 strategy: fail-fast: false matrix: @@ -21,14 +25,19 @@ jobs: - '1.10.7' # current LTS - '1.11.2' # currently the latest stable release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Setup Docker run: | docker version docker compose version - docker build --build-arg JULIA_VERSION=${{matrix.version}} -t slurm-cluster-julia -f ci/Dockerfile . + docker build --build-arg JULIA_VERSION="${MATRIX_VERSION:?}" -t slurm-cluster-julia -f ci/Dockerfile . docker compose -f ci/docker-compose.yml up -d docker ps + env: + MATRIX_VERSION: ${{matrix.version}} - name: Test Docker run: | docker exec -t slurmctld julia --version