-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (31 loc) · 903 Bytes
/
lint.yml
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
name: Lint
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2 # To retrieve the preceding commit.
- name: Get all changed files
id: the_changes
uses: tj-actions/changed-files@v45
with:
files: |
synsets/**/*.xml
- name: libxml install
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- uses: korelstar/xmllint-problem-matcher@v1
- name: Run lint
run: npm run lint -- ${{ steps.the_changes.outputs.all_changed_files }}