Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/alliser-action
Run Alliser using Github Actions. Detects & lists unallowed file extensions in the project.
https://github.com/stscoundrel/alliser-action
alliser filetype-validator github-action github-actions
Last synced: 3 months ago
JSON representation
Run Alliser using Github Actions. Detects & lists unallowed file extensions in the project.
- Host: GitHub
- URL: https://github.com/stscoundrel/alliser-action
- Owner: stscoundrel
- License: mit
- Created: 2022-01-07T14:14:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T06:30:03.000Z (8 months ago)
- Last Synced: 2024-10-13T02:34:40.594Z (3 months ago)
- Topics: alliser, filetype-validator, github-action, github-actions
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/alliser-action
- Size: 754 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alliser Action
Run [Alliser](https://github.com/stscoundrel/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: Alliseron: [pull_request]
jobs:
alliser:
runs-on: ubuntu-latest
name: Check file types
steps:
- uses: actions/checkout@v2
- uses: stscoundrel/[email protected]
name: Alliser action step
with:
extensions: .ts,.tsx
folders: src,tests
```