Skip to content

Commit

Permalink
wip2
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Mar 30, 2024
1 parent a37020f commit 87d3db7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/alpine-unittests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Integration Tests
name: Unittests on alpine

on:
pull_request:
Expand All @@ -17,23 +17,23 @@ defaults:
run:
shell: sh -ex {0}


jobs:
integration-tests:
runs-on: ubuntu-22.04
build:
runs-on: ubuntu-latest
steps:
- name: Prepare test tools
- name: Checkout code
uses: actions/checkout@v4

- name: Install incus
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -y update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install incus
- name: Initialize LXD
curl https://pkgs.zabbly.com/get/incus-stable | sudo sh -x
- name: Reset the firewall
run: |
ssh-keygen -P "" -q -f ~/.ssh/id_rsa
# Jammy GH Action runners have docker installed, which edits iptables
# in a way that is incompatible with lxd.
# https://documentation.ubuntu.com/lxd/en/latest/howto/network_bridge_firewalld/#prevent-connectivity-issues-with-lxd-and-docker
sudo iptables -I DOCKER-USER -j ACCEPT
sudo incus init --auto
sudo nft flush ruleset
- name: Init incus
run: sudo incus admin init --auto
- name: Create alpine container
run: |
incus launch images:alpine/edge alpine
Expand Down

0 comments on commit 87d3db7

Please sign in to comment.