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

Commit 8fc9c75

Browse files
authored
Fix CI
1 parent 5f1c362 commit 8fc9c75

File tree

1 file changed

+37
-22
lines changed

1 file changed

+37
-22
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,51 @@
11
name: CI
22

33
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
46
push:
57
branches:
6-
- main
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
714

8-
jobs:
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
919

10-
lint:
11-
name: Lint
20+
jobs:
21+
run-linter:
22+
name: Run linter
1223
runs-on: ubuntu-latest
24+
1325
steps:
14-
- name: Checkout Code
15-
uses: actions/checkout@v3
26+
- name: Check out Git repository
27+
uses: actions/checkout@v3
1628

17-
- uses: ok-nick/setup-aftman@v0.3.0
18-
name: Install aftman
19-
with:
20-
token: ${{ SECRETS.GITHUB_TOKEN }}
29+
- name: Install aftman
30+
uses: ok-nick/setup-aftman@v0.3.0
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
2133

22-
- name: Lint
23-
run: |
24-
selene ./src
34+
- name: Run selene
35+
run: |
36+
selene ./src
2537
26-
style:
27-
name: Styling
38+
run-styler:
39+
name: Run styler
2840
runs-on: ubuntu-latest
41+
2942
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
43+
- name: Check out Git repository
44+
uses: actions/checkout@v3
45+
46+
- name: Run stylua
47+
uses: JohnnyMorganz/stylua-action@v3
48+
with:
49+
token: ${{ secrets.GITHUB_TOKEN }}
50+
version: latest
51+
args: --check ./src

0 commit comments

Comments
 (0)