Files
language-data/.github/workflows/node.yml
Abijeet 7c970cb247 Replace Travis with Github actions
Two workflows have been added,

  * PHP build - Runs tests on version 7.2, 7.3, also runs phpcs
  * Node.js build - Runs tests on version 8.x, 10.x, 12.x, also
    runs ESLint

Bug: T218639
2020-01-31 23:06:26 +05:30

28 lines
550 B
YAML

name: Node.js build
on:
[pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-v: [8.x, 10.x, 12.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-v }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-v }}
- name: Install package.json dependencies
run: npm install
- name: Run Node.js test suite
run: npm test
- name: Run linting
run: npm run lint