Bug fixes #131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: [ develop, main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.head.repo.owner.login == github.repository_owner }} | |
name: Lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
uses: wearerequired/lint-action@v1.9.0 | |
with: | |
github_token: ${{ secrets.github_token }} | |
eslint: true | |
eslint_extensions: js,cjs,mjs | |
eslint_args: "--max-warnings 0" | |
build: | |
runs-on: ubuntu-latest | |
name: Build Test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build |