Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

huff-language/huff-tests-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huff Tests Github Action

Github Action that:

  1. Checks out your local repository
  2. Installs huffc
  3. Runs Huff tests on any files that match the default or specified parameters:
    1. Named *.t.huff or the specified extension
    1. Located in src or the specified directory
    1. With the specified output or list

Example Workflow

name: Huff tests

on: [push]

jobs:
  tests:
    name: Tests with Huff
    runs-on: ubuntu-latest
    steps:
      - name: Run Huff Tests
        uses: huff-language/huff-tests-action@v3
        with:
          # Below arguments are optional:
          with-location: "tests" # Defaults to "src"
          with-extension: "*.t.huff" # Defaults to "*.t.huff*"
          with-format: "table" # Defaults to "list"

Inputs

Name Required Description Type
with-extension False The extension of your huff tests, e.g. t.huff or .poggers.huff. string
with-location False The location of your huff test files, e.g. src or contracts string
with-format False The format of your huff test output. One of ["list", "table", "json"]. string

Contributing

All contributions are welcome.

Acknowledgements