Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adds latest and docs #1

Merged
merged 4 commits into from
Nov 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Milo Action
This action runs Milo to find HTML issues and other details in the code.

## Usage
To use this action you should add the `wawandco/milo-action` Actin to your existing workflow. The configuration looks something like this:

```yaml
name: "CI"
on: ["push", "pull_request"]

jobs:
ci:
name: "Run CI"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wawandco/milo-action@v0.1.0
```

This will use the latest version of Milo and analyze the root folder of your source. One important thing is to do the checkout of the repo before adding the milo action.

## Options

### `version`
Allows to specify the version of Milo that will be used to analyze your HTML code. Defaults to `latest`.

### `folder`
Allows to specify the folder that will be analyzed by Milo. Defaults to `.`.


9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ inputs:
default: "."
version:
description: "Version of milo to use"
default: "v0.6.0"
default: "latest"
runs:
using: "composite"
steps:
- id: install_milo
run: |
wget https://github.com/wawandco/milo/releases/download/${{inputs.version}}/milo_Linux_x86_64.tar.gz
export URL=https://github.com/wawandco/milo/releases/download/${{inputs.version}}/milo_Linux_x86_64.tar.gz
if [ "${{inputs.version}}" == "latest" ]; then
URL="https://github.com/wawandco/milo/releases/latest/download/milo_Linux_x86_64.tar.gz"
fi

wget $URL
tar -xzf milo_Linux_x86_64.tar.gz
sudo mv milo /usr/local/bin/milo
shell: bash
Expand Down