Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Commit d3f19d2

Browse files
authored
Add Selene
1 parent bfdc7b6 commit d3f19d2

File tree

1 file changed

+36
-37
lines changed

1 file changed

+36
-37
lines changed

.github/workflows/lint.yml

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
1-
name: Lint
2-
3-
on:
4-
# Trigger the workflow on push or pull request,
5-
# but only for the main branch
6-
push:
7-
branches:
8-
- main
9-
# Replace pull_request with pull_request_target if you
10-
# plan to use this action with forks, see the Limitations section
11-
pull_request:
12-
branches:
13-
- main
14-
15-
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
16-
permissions:
17-
checks: write
18-
contents: write
19-
20-
jobs:
21-
run-linters:
22-
name: Run linters
23-
runs-on: ubuntu-latest
24-
25-
steps:
26-
- name: Check out Git repository
27-
uses: actions/checkout@v2
28-
29-
# Install your linters here
30-
31-
- name: Run linters
32-
uses: JohnnyMorganz/stylua-action@v3
33-
with:
34-
token: ${{ secrets.GITHUB_TOKEN }}
35-
version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes
36-
# CLI arguments
37-
args: --check .
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v3
16+
17+
- uses: ok-nick/[email protected]
18+
name: Install aftman
19+
with:
20+
token: ${{ SECRETS.GITHUB_TOKEN }}
21+
22+
- name: Lint
23+
run: |
24+
selene ./src
25+
26+
style:
27+
name: Styling
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
- name: StyLua
32+
uses: JohnnyMorganz/stylua-action@v3
33+
with:
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
version: latest
36+
args: --check ./src

0 commit comments

Comments
 (0)