Skip to content

CogNet 2024-11-26 import #42

CogNet 2024-11-26 import

CogNet 2024-11-26 import #42

Workflow file for this run

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 }}