Skip to content

Set up your GitHub Actions workflow with a specific version of Variant

License

Notifications You must be signed in to change notification settings

variantdev/setup-variant

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-variant

GitHub Actions status

This action sets up a variant environment for use in actions by:

  • optionally downloading and caching a version of Variant by version and adding to PATH
  • registering problem matchers for error output

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@master
- uses: variantdev/setup-variant@v1
  with:
    variant-version: '0.35.1' # The Variant version to download (if necessary) and use.
- run: variant version

Matrix Testing:

jobs:
  build:
    runs-on: ubuntu-16.04
    strategy:
      matrix:
        variant: [ '0.35.0', '0.35.x' ]
    name: Variant ${{ matrix.variant }} sample
    steps:
      - uses: actions/checkout@master
      - name: Setup variant
        uses: variantdev/setup-variant@v1
        with:
          variant-version: ${{ matrix.variant }}
      - run: variant version

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide

About

Set up your GitHub Actions workflow with a specific version of Variant

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published