Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

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

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x]

steps:
- uses: actions/checkout@v2
- name: Fetch the master branch
run: git fetch origin HEAD:refs/remotes/origin/HEAD --depth 1
- name: Fetch the master branch
run: git diff --name-only origin/HEAD --no-renames --diff-filter=ACMR
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i && npm i eslint codecov istanbul typescript
- run: node_modules/.bin/istanbul cover lib/ace/test/all.js
- run: changes=$(git diff --name-only origin/HEAD --no-renames --diff-filter=ACMR);
# if [ "$changes" == "" ]; then
# echo "checking all files";
# node node_modules/eslint/bin/eslint "lib/ace/**/*.js";
# else
# changes=$(echo "$changes" | grep -P '.js$');
# echo "checking $changes";
# if [ "$changes" != "" ]; then
# node node_modules/eslint/bin/eslint $changes;
# fi
# fi
- run: npm run lint
- run: node_modules/.bin/codecov
- run: node_modules/.bin/tsc --noImplicitAny --strict --noUnusedLocals --noImplicitReturns --noUnusedParameters --noImplicitThis ace.d.ts
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.