infra-action-test-runner

GitHub Action for run tests, Sysdig way'

Stars
1
Committers
6

Bot releases are hidden (Show)

infra-action-test-runner - v1.3 Latest Release

Published by jcorley-sysdig 6 months ago

infra-action-test-runner

This Action generalizes the way in which you can start tests.
It aims to provide common dependencies for test environment like KinD, Bats, and the like.

What's Changed

New Contributors

Full Changelog: https://github.com/draios/infra-action-test-runner/compare/v0.4.0...v1.3

infra-action-test-runner - v0.4.0

Published by blacksd 10 months ago

What's Changed

Full Changelog: https://github.com/draios/infra-action-test-runner/compare/v0.3.0...v0.4.0

infra-action-test-runner - v0.3.0

Published by blacksd 10 months ago

What's Changed

Full Changelog: https://github.com/draios/infra-action-test-runner/compare/v0.2.6...v0.3.0

infra-action-test-runner - v1

Published by mbovo almost 2 years ago

action-test-runner

This Action try to generalize the way in which you can start tests.
It aim to provide common dependencies for test environment like KinD, Bats and the like

Requirement

This actions require all the tests in the target repo to be callable using task test as entry point, levering taskfile

The other minimal entrypoints required are

  • task test
  • task test:clean
  • task test:logs

Inputs

Required

  • github_token: GITHUB_TOKEN secret

Optional

  • artifactory_username: Artifactory Username
  • artifactory_password: Artifactory Password
  • kind_needed: Boolean if a Kubernetes In Docker cluster is needed for tests (default: false)
  • kind_version: KinD version (default: "v0.11.1")
  • kind_config_path: Kind config path (default: tests/kind-config.yaml)
  • kind_cluster_name: Kind cluster name (default: kind)
  • bats_version: BATS version ("1.5.0")
  • envsubst_needed: Indicate if envsubst is needed (default: "false")

Example workflow

Perform all checks on pull requests

name: tests

on:

  pull_request:
    types: [opened, review_requested, ready_for_review]

jobs:
  tests:
    runs-on: self-hosted
    steps:
      - uses: actions/checkout@v2
      - uses: draios/infra-action-test-runner@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          # this will trigger `task test` in the target repo
infra-action-test-runner - v1.2

Published by mbovo almost 2 years ago

infra-action-test-runner - v1.1

Published by brokenpip3 over 2 years ago

Feat: Add the support to specify taskfile task name + test the action locally