Skip to content

add test action

add test action #10

Workflow file for this run

name: Run Tests
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix flake check
- run: |
nix develop --command nix run '.#initKind'
nix develop --command nix run '.#deployToKind'
nix develop --command nix run '.#getKubeconfig'
nix develop --command go test -v ./...