Skip to content

Commit

Permalink
Merge pull request #74 from mathworks/dklilley.testAction
Browse files Browse the repository at this point in the history
Add test action
  • Loading branch information
dklilley committed Dec 26, 2023
2 parents da0cd40 + ab7dc60 commit 63debc7
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 14 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Run tests against the MATLAB Language Grammar

name: test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install system dependencies
run: sudo apt-get -y install libxml2-utils

- name: Install Node.js dependencies
run: npm ci

- name: Run Tests
run: npm test
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# MATLAB-Language-grammar
[![Build Status](https://app.travis-ci.com/mathworks/MATLAB-Language-grammar.svg?branch=master)](https://app.travis-ci.com/mathworks/MATLAB-Language-grammar)
[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=mathworks/MATLAB-Language-grammar)

Regular expression based grammar for the MATLAB Language
Expand Down
231 changes: 231 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63debc7

Please sign in to comment.