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 }}