From 1b5d5150cd68438e0ea6b1ae8354fa3e749a2973 Mon Sep 17 00:00:00 2001 From: Gago Date: Tue, 17 Nov 2020 09:30:59 -0800 Subject: [PATCH] adding workflow + fixing eslint issues --- .github/workflows/validation.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/validation.yml diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml new file mode 100644 index 0000000..d4bfdd7 --- /dev/null +++ b/.github/workflows/validation.yml @@ -0,0 +1,37 @@ +name: Validation + +on: pull_request + +jobs: + lint: + name: Linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Install dependencies + run: | + npm install + - name: ESLint + run: npm run lint + + test: + name: Run unit tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Install dependencies + run: npm install + - name: Mocha + run: npm run test --coverage + - name: Coveralls + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}