mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
20 lines
753 B
YAML
20 lines
753 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 ${{ secrets.GITHUB_ACTOR }}@users.noreply.github.com
|
|
git config --global user.name ${{ secrets.GITHUB_ACTOR }}
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ secrets.GITHUB_REPOSITORY }}
|
|
git commit --all --message "Format files"
|
|
git push
|
|
- name: Run lint script
|
|
run: deno lint src/** test/** --unstable --ignore=./src/types,./src/interactions/types
|