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
This commit is contained in:
27
.github/workflows/node.yml
vendored
Normal file
27
.github/workflows/node.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user