Skip to content

Commit

Permalink
Fix tests (#173)
Browse files Browse the repository at this point in the history
* debug

* try loading modules explicitly

* just use ubuntu-20.04 for now
  • Loading branch information
nzbr authored Dec 1, 2022
1 parent fd92190 commit 5222192
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
matrix:
test: ${{ fromJSON(needs.find-tests.outputs.tests) }}
os:
- ubuntu-latest
- ubuntu-20.04
# - windows-latest # doesn't work due to lack of nested virtualization on the runners, hopefully this will work one day
runs-on: ${{ matrix.os }}
steps:
Expand Down
8 changes: 7 additions & 1 deletion tests/docker/docker.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ BeforeAll {
Describe "Docker (native)" {
BeforeAll {
$distro = Install-Distro
$distro.InstallConfig("$PSScriptRoot/docker-native.nix")
try {
$distro.InstallConfig("$PSScriptRoot/docker-native.nix")
}
catch {
$distro.Launch("sudo journalctl --no-pager -u docker.service")
throw $_
}
}

It "should be possible to run a docker container" {
Expand Down

0 comments on commit 5222192

Please sign in to comment.