diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..070815b16 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,25 @@ +name: Lint + +on: + pull_request: + branches: + - master + +jobs: + linux: + name: Linux - Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-node@v2 + with: + node-version: 14 + cache: npm + - run: npm ci + - run: | + npm run commitlint -- \ + --verbose \ + --from `git merge-base origin/master $GITHUB_SHA` + - run: npm run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82d51b1b3..13fea22eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ on: jobs: main: - name: Lint and Unit (Client and Server), E2E and Integration Test + name: Unit (Client and Server), E2E and Integration Test runs-on: ubuntu-latest env: BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} @@ -23,8 +23,6 @@ jobs: node-version: 14 cache: npm - run: npm ci - - run: npm run commitlint -- --from `git merge-base origin/master $GITHUB_SHA` - - run: npm run lint - run: npm run build:check - run: npm run test:unit - run: npm run test:e2e