Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-square

GitHub Action

Alliser Action

v0.6.1

Alliser Action

check-square

Alliser Action

Run Alliser file checker

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Alliser Action

uses: stscoundrel/alliser-action@v0.6.1

Learn more about this action in stscoundrel/alliser-action

Choose a version

Alliser Action

Run Alliser using Github Actions.

Why Alliser?

Alliser guards your project against incorrect file types. It can be something small -> maybe you want to enforce all files are .ts instead of .js. Or maybe you want to ban or discourage use of particular file extension, or a programming language.

Just setup Alliser Action, hook it up to pull requests and you'll know if some file extension is incorrect.

Example config

Example .yml action file for running Alliser.

  • Looks for .ts & .tsx files. Other files are considered incorrect
  • Scans src and tests folder
  • Fails if other file types are found, and outputs list of the files.
name: Alliser - Check file types

on: [pull_request]

jobs:
  alliser:
    runs-on: ubuntu-latest
    name: Run Alliser
    steps:
    - uses: actions/checkout@v2
    - uses: stscoundrel/alliser-action@v0.5.2
      name: Alliser action step
      with:
        extensions: .ts,.tsx
        folders: src,tests