Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

lint awesome with awesome-lint as an Action #1675

Closed
Closed
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
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: [push, pull_request]
Copy link

@alexesprit alexesprit Jan 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be changed to:

on:
  push:
    # Run against master branch only 
    branches: [master]
  pull_request:
    # Include events emitted on code change only
    types: [opened, synchronize]


name: Lint with awesome-lint

jobs:
awesome-lint-workflow:
runs-on: ubuntu-latest
name: Linting with awesome-lint
steps:
- name: checkout repo
id: checkout
uses: actions/checkout@v2
- name: awesome-lint-action
uses: squadcastHQ/awesome-lint-action@master
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really see why you need a custom workflow for this. You could just run $ awesome-lint as a command.

id: awesome-lint
with:
readme-file: "README.md"
workspace-dir: "${{ steps.checkout.env.GITHUB_WORKSPACE }}"
- name: awesome-lint report
run: echo "${{ steps.awesome-lint.outputs.report }}"