Add support for Rocky Linux #68
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
workflow_call: | |
permissions: | |
contents: read | |
jobs: | |
run-linter: | |
uses: ./.github/workflows/lint.yaml | |
bats: | |
name: bats-${{ matrix.os }} | |
runs-on: ubuntu-latest | |
needs: [run-linter] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [centos, focal] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Configure LXD" | |
run: | | |
sudo adduser $USER lxd | |
newgrp lxd | |
sudo lxd init --auto | |
sudo lxc network set lxdbr0 ipv6.address none | |
sudo chmod a+wr /var/snap/lxd/common/lxd/unix.socket | |
- name: Install Juju | |
run: | | |
sudo snap install juju --channel=2.9/stable --classic | |
- name: Bootstrap Juju | |
run: | | |
juju bootstrap localhost | |
- name: Install Charmcraft | |
run: | | |
sudo snap install charmcraft --classic | |
- name: Run the tests on ${{ matrix.os }} | |
run: | | |
workdir=$PWD | |
cd .. | |
git clone https://github.com/omnivector-solutions/slurm-bundles.git | |
cd $workdir | |
sed -i 's/@git describe --tags --dirty/echo "latest"/g' Makefile | |
make tests-${{ matrix.os }} |