Skip to content

Commit

Permalink
Updating workflow file name, and image dependency direct to released …
Browse files Browse the repository at this point in the history
…kontrol images
  • Loading branch information
F-WRunTime committed Sep 26, 2023
1 parent 8a7c7d2 commit f641e91
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,40 @@ name: 'Update Version'
on:
pull_request:
branches:
- master
- "master"
push:
branches:
- '_update-deps/runtimeverification/kontrol'

# Stop in progress workflows on the same branch and same workflow to use latest committed code
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
set-image-version:
name: 'Set Image Version'
runs-on: [self-hosted, linux, flyweight]
outputs:
image-version: ${{ steps.image-version.outputs.kontrol_version }}
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 'Set Image Version'
id: image-version
run: |
kontrol_version=$(cat deps/kontrol_release)
echo "kontrol_version=${kontrol_version}" >> $GITHUB_ENV
new-version-test:
name: 'Test Tool Update'
runs-on: [self-hosted, linux, normal]
needs: [set-image-version]
container:
image: ghcr.io/runtimeverification/devops/kup:643101c
volumes:
- nixstorekup:/nix/store
image: runtimeverificationinc/kontrol:ubuntu-jammy-${{ needs.set-image-version.outputs.image-version }}
steps:
- name: 'Check out code'
uses: actions/checkout@v3
Expand All @@ -32,7 +52,7 @@ jobs:
run: |
set -euo pipefail
new-version=$(cat deps/kontrol_release)
kup install kontrol --version ${new-version}
kup install --version ${new-version}
# If all scripts in test.sh pass then the test is successful, else fail
# and print the name of the script that failed
for script in ./tests/*.sh; do
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit f641e91

Please sign in to comment.