-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (31 loc) · 753 Bytes
/
pr.yaml
File metadata and controls
31 lines (31 loc) · 753 Bytes
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
name: Lint and Test
on:
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- if: env.ACT == 'true'
run: |
apt-get update && apt-get install -y unzip && apt-get clean
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: "latest"
args: --check .
test:
runs-on: ubuntu-latest
steps:
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
- uses: actions/checkout@v4
- if: env.ACT == 'true'
run: |
apt-get update
apt-get install -y make git
apt-get clean
- run: |
make test