mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
20 lines
760 B
YAML
20 lines
760 B
YAML
name: Lint
|
|
on: [push, pull_request]
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: denoland/setup-deno@main
|
|
- name: Run fmt script
|
|
run: deno fmt
|
|
- name: Commit formatted files
|
|
run: |
|
|
git config --global user.email ${{ github.actor }}@users.noreply.github.com
|
|
git config --global user.name ${{ github.actor }}
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
|
git commit --all --allow-empty-message --message "" || echo "No changes"
|
|
git push
|
|
- name: Run lint script
|
|
run: deno lint src/** test/** --unstable --ignore=./src/types,./src/interactions/types
|