-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (45 loc) · 1.28 KB
/
run-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 }}