Skip to content

Improve compatibility for home-manager modules #525

Improve compatibility for home-manager modules

Improve compatibility for home-manager modules #525

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
types: [ opened, reopened, labeled, synchronize ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
linter:
- golangci-lint
steps:
- uses: actions/checkout@v3
- name: Setup Nix
uses: ./.github/actions/setup-nix
- name: Run linter
run: nix run .#lint-${{ matrix.linter }}
build:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- nix-snapshotter
- image-hello
- image-redis
- image-redisWithShell
steps:
- uses: actions/checkout@v3
- name: Setup Nix
uses: ./.github/actions/setup-nix
- name: Build package
run: nix build .#${{ matrix.package }}
integration-test:
strategy:
matrix:
test:
- snapshotter
- kubernetes
- k3s
- k3s-external
- k3s-rootless
runs-on: nix-snapshotter-runner
needs: [lint, build]
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test')
steps:
- uses: actions/checkout@v3
- name: Setup Nix
uses: ./.github/actions/setup-nix
with:
enable-kvm: true
- name: Build snapshotter
run: nix build
- name: Run integration tests
run: nix run -L .#test-${{ matrix.test }}