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

Commit 7e7cc93

Browse files
authored
Update and rename CI.yml to lint.yml
Signed-off-by: Ryan <[email protected]>
1 parent c2f53ab commit 7e7cc93

File tree

2 files changed

+37
-28
lines changed

2 files changed

+37
-28
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 .

0 commit comments

Comments
 (0)