Git Product home page Git Product logo

actions-validate-product-version's Introduction

actions-validate-product-version Heimdall CI

Given an expected version string, check that the tool emits a matching version string. The artifact path may refer to a single artifact or a directory of artifacts to test. Executables must support a version subcommand and are executed as $executable version.

Currently supported artifact types:

  • foo.zip -- required to contain executable foo, which will be extracted and executed for the test
  • foo -- executable to be run as-is Other non-executable artifacts are skipped.

Supported Product Builds

Supported builds are enumerated in supported_builds.json (separated by license class for simpler maintenance of the file).

Usage

jobs:
  test-version-string:
    name: "Test Version String"
    runs-on: ubuntu-latest
    # needs: [ ... ]
    steps:
      - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
      # this example uses set-product-version like many CRT build workflows
      - uses: hashicorp/actions-set-product-version@v1
        name: Set Product Version
        id: set-product-version
      # ... potentially other steps ...
      - name: Test
        uses: hashicorp/actions-validate-product-version@v1
        with:
          expected_version: ${{ needs.set-product-version.outputs.product-version }}
          artifact_path: ./consul

Inputs

Input Description
expected_version The version the artifact expected to declare
artifact_path The path to the artifact to test (may be a directory)
soft_fail If non-empty, unsupported product error is non-fatal

Development

act --container-architecture=linux/amd64 --workflows .github/workflows/test.yml

Release Process

  1. Commit your changes, open a PR, get it reviewed, and merge to main.
  2. Checkout the main branch and pull the latest changes.
  3. Create a new tag for the release, e.g. v1.0.1 with git tag v1.0.1 && git push origin v1.0.1.
  4. Update the tag locally, e.g. git tag -d v1 && git tag v1
  5. Replace the tag upstream, e.g. git push origin :refs/tags/v1 && git push origin v1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.