Extend Lexer interface to expose diagnostics and data as a lexing rep… #2527
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Langium CI (${{ matrix.os }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Build | |
shell: bash | |
run: | | |
npm ci | |
npm run build:clean | |
npm run validate-exports | |
- name: Test | |
if: success() || failure() | |
shell: bash | |
run: | | |
npm run test | |
lint: | |
name: Langium Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Build | |
shell: bash | |
run: | | |
npm ci | |
npm run build:clean | |
npm run langium:generate | |
- name: Check Git Status | |
shell: bash | |
run: git diff --exit-code . | |
- name: Lint | |
shell: bash | |
run: npm run lint |