From 93f3b8e0f2f5e310edf7fa9e1940fd8460eb21ba Mon Sep 17 00:00:00 2001 From: Rnbsov Date: Sat, 9 Mar 2024 14:19:42 +0500 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20Separate=20workflows=20for=20tests?= =?UTF-8?q?=20and=20linting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deno.yml | 30 ------------------------------ .github/workflows/lint.yml | 22 ++++++++++++++++++++++ .github/workflows/tests.yml | 22 ++++++++++++++++++++++ 3 files changed, 44 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/deno.yml create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml deleted file mode 100644 index 07393c8..0000000 --- a/.github/workflows/deno.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Deno tests - -on: [push, pull_request] - -permissions: - contents: read - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Setup repo - uses: actions/checkout@v3 - - - name: Setup Deno - # uses: denoland/setup-deno@v1 - uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 - with: - deno-version: v1.x - - # Uncomment this step to verify the use of 'deno fmt' on each commit. - # - name: Verify formatting - # run: deno fmt --check - - name: Run tests - run: deno test -A - - name: Run linter - run: deno lint || 1 - - diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..0bf3925 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Deno lint + +on: [push, pull_request] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v3 + + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Run linter + run: deno lint diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..0322cb8 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,22 @@ +name: Deno tests + +on: [push, pull_request] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v3 + + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Run tests + run: deno test -A