2021-11-15 18:50:38 +00:00
|
|
|
name: Install Script
|
2021-10-29 16:47:37 +00:00
|
|
|
on:
|
|
|
|
push:
|
2021-11-15 18:50:38 +00:00
|
|
|
branches: [main, master]
|
2021-10-29 16:47:37 +00:00
|
|
|
paths:
|
2021-11-15 18:50:38 +00:00
|
|
|
- "channel.yaml"
|
2021-10-29 16:47:37 +00:00
|
|
|
- "install.sh"
|
2021-11-15 18:50:38 +00:00
|
|
|
- "tests/vagrant/install/**"
|
2021-10-29 16:47:37 +00:00
|
|
|
pull_request:
|
2021-11-15 18:50:38 +00:00
|
|
|
branches: [main, master]
|
2021-10-29 16:47:37 +00:00
|
|
|
paths:
|
|
|
|
- "install.sh"
|
2021-11-15 18:50:38 +00:00
|
|
|
- "tests/vagrant/install/**"
|
2021-10-29 16:47:37 +00:00
|
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
2021-11-15 18:50:38 +00:00
|
|
|
test:
|
|
|
|
name: "Smoke Test"
|
2021-10-29 16:47:37 +00:00
|
|
|
runs-on: macos-10.15
|
|
|
|
timeout-minutes: 40
|
2021-11-15 18:50:38 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
channel: [stable]
|
|
|
|
vm: [centos-7, centos-8, fedora-coreos, opensuse-leap, opensuse-microos, ubuntu-focal]
|
|
|
|
include:
|
|
|
|
- {channel: latest, vm: centos-8}
|
|
|
|
- {channel: latest, vm: ubuntu-focal}
|
|
|
|
- {channel: latest, vm: opensuse-leap}
|
|
|
|
- {channel: testing, vm: centos-8}
|
|
|
|
- {channel: testing, vm: opensuse-leap}
|
|
|
|
- {channel: testing, vm: ubuntu-focal}
|
|
|
|
max-parallel: 2
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: tests/vagrant/install/${{ matrix.vm }}
|
|
|
|
env:
|
|
|
|
INSTALL_K3S_CHANNEL: ${{ matrix.channel }}
|
2021-10-29 16:47:37 +00:00
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: actions/checkout@v2
|
2021-11-15 18:50:38 +00:00
|
|
|
with: {fetch-depth: 1}
|
|
|
|
- name: "Vagrant Cache"
|
|
|
|
uses: actions/cache@v2
|
2021-10-29 16:47:37 +00:00
|
|
|
with:
|
2021-11-15 18:50:38 +00:00
|
|
|
path: |
|
|
|
|
~/.vagrant.d/boxes
|
|
|
|
~/.vagrant.d/gems
|
|
|
|
key: install-${{ hashFiles(format('tests/vagrant/install/{0}/Vagrantfile', matrix.vm)) }}
|
|
|
|
id: vagrant-cache
|
|
|
|
continue-on-error: true
|
|
|
|
- name: "Vagrant Plugin(s)"
|
|
|
|
run: vagrant plugin install vagrant-k3s vagrant-reload
|
|
|
|
- name: "Vagrant Up ⏩ Install K3s"
|
2021-10-29 16:47:37 +00:00
|
|
|
run: vagrant up
|
2021-11-15 18:50:38 +00:00
|
|
|
- name: "⏳ Node"
|
|
|
|
run: vagrant provision --provision-with=k3s-wait-for-node
|
|
|
|
- name: "⏳ CoreDNS"
|
|
|
|
run: vagrant provision --provision-with=k3s-wait-for-coredns
|
|
|
|
- name: "⏳ Local Storage"
|
|
|
|
run: vagrant provision --provision-with=k3s-wait-for-local-storage
|
|
|
|
continue-on-error: true
|
|
|
|
- name: "⏳ Metrics Server"
|
|
|
|
run: vagrant provision --provision-with=k3s-wait-for-metrics-server
|
|
|
|
continue-on-error: true
|
|
|
|
- name: "⏳ Traefik"
|
|
|
|
run: vagrant provision --provision-with=k3s-wait-for-traefik
|
|
|
|
continue-on-error: true
|
|
|
|
- name: "k3s-status"
|
|
|
|
run: vagrant provision --provision-with=k3s-status
|
|
|
|
- name: "k3s-procps"
|
|
|
|
run: vagrant provision --provision-with=k3s-procps
|