diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5da5866 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,29 @@ +name: Lint + +on: push + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install NPM packages + run: yarn install --frozen-lockfile + + - name: Run linters + uses: wearerequired/lint-action@v2 + with: + eslint: true + eslint_args: --max-warnings 0 + eslint_extensions: js,ts,tsx + prettier: true + continue_on_error: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..81a59bb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Run integration tests + +on: push + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Checkout + uses: actions/checkout@v3 + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run tests + run: yarn test