name: CI
on:
    push:
        branches: [main]
    pull_request:
        branches: [main]
    workflow_dispatch:
jobs:
    test:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v2
            - uses: actions/setup-node@v2
              with:
                  # TODO: Update in future to 16 + make workflow how to update this dependency
                  node-version: '14'

            - name: Install dependencies
              run: npm install

            - name: Lint
              run: npm run lint

            - name: Test
              run: npm run test
