Skip to content

Commit

Permalink
enable testing RPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Jun 27, 2023
1 parent 287cc2d commit 76a3e75
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/build-test-release-client-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,44 +164,44 @@ jobs:
- name: Test repository access
run: ls /cvmfs/pilot.nessi.no/

# test-rpm-package:
# needs: build-linux-packages
# runs-on: ubuntu-latest
# container:
# image: centos:centos7
# options: --device /dev/fuse --privileged
#
# steps:
# - name: Download and install CVMFS client
# run: yum install -y https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
#
# - name: Install CVMFS client
# run: yum install -y cvmfs
#
# - name: Download cvmfs-config-nessi package
# uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
# with:
# name: linux_packages
#
# - name: Find filename of package
# id: find_filename
# shell: bash
# run: |
# rpmfile="$(find . -name cvmfs-config-nessi*.rpm)"
# echo ::set-output name=rpmfile::${rpmfile}
#
# - name: Install package
# run: rpm -i ./${{ steps.find_filename.outputs.rpmfile }}
#
# - name: Add local CVMFS configuration (/etc/cvmfs/default.local)
# run: echo "CVMFS_CLIENT_PROFILE=single" | tee /etc/cvmfs/default.local
#
# - name: Mount the repositories
# #run: cvmfs_config setup
# run: mkdir -p /cvmfs/pilot.nessi.no && mount -t cvmfs pilot.nessi.no /cvmfs/pilot.nessi.no
#
# - name: Test repository access
# run: ls /cvmfs/pilot.nessi.no/
test-rpm-package:
needs: build-linux-packages
runs-on: ubuntu-latest
container:
image: centos:centos7
options: --device /dev/fuse --privileged

steps:
- name: Download and install CVMFS client
run: yum install -y https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm

- name: Install CVMFS client
run: yum install -y cvmfs

- name: Download cvmfs-config-nessi package
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
with:
name: linux_packages

- name: Find filename of package
id: find_filename
shell: bash
run: |
rpmfile="$(find . -name cvmfs-config-nessi*.rpm)"
echo ::set-output name=rpmfile::${rpmfile}
- name: Install package
run: rpm -i ./${{ steps.find_filename.outputs.rpmfile }}

- name: Add local CVMFS configuration (/etc/cvmfs/default.local)
run: echo "CVMFS_CLIENT_PROFILE=single" | tee /etc/cvmfs/default.local

- name: Mount the repositories
#run: cvmfs_config setup
run: mkdir -p /cvmfs/pilot.nessi.no && mount -t cvmfs pilot.nessi.no /cvmfs/pilot.nessi.no

- name: Test repository access
run: ls /cvmfs/pilot.nessi.no/

test-tar-package:
needs: build-linux-packages
Expand Down Expand Up @@ -276,8 +276,8 @@ jobs:

release:
#needs: [build-linux-packages, build-macos-package, test-deb-package, test-rpm-package, test-macos-package, test-tar-package]
#needs: [build-linux-packages, test-deb-package, test-rpm-package, test-tar-package]
needs: [build-linux-packages, test-deb-package, test-tar-package]
#needs: [build-linux-packages, test-deb-package, test-tar-package]
needs: [build-linux-packages, test-deb-package, test-rpm-package, test-tar-package]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 76a3e75

Please sign in to comment.