-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (79 loc) · 1.85 KB
/
Copy pathci.yml
File metadata and controls
88 lines (79 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
---
name: "CI: Lint & Flake Check"
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "lua/**"
- "stylua.toml"
- "selene.toml"
- "vim.yml"
- "flake.nix"
- "flake.lock"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "lua/**"
- "stylua.toml"
- "selene.toml"
- "vim.yml"
- "flake.nix"
- "flake.lock"
- ".github/workflows/ci.yml"
# id-token: write omitted — not using FlakeHub cache
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
stylua:
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Run StyLua check
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check --config-path=stylua.toml .
selene:
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Run Selene
uses: NTBBloodbath/selene-action@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --display-style=quiet .
flake-check:
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@v3
- name: Run flake checks
run: nix flake check