From 4bb1804af789cf5c7228e0d3ef661208926cc389 Mon Sep 17 00:00:00 2001 From: mrkvon Date: Sun, 24 Sep 2023 03:35:47 +0200 Subject: [PATCH] Run tests and linter in github workflows --- .github/workflows/lint.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/test.yml | 22 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/test.yml 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