From 47fadc64594be673bb7c2e282577807e20b538e2 Mon Sep 17 00:00:00 2001 From: Angelo Verlain Date: Mon, 10 Jun 2024 03:54:46 +0200 Subject: [PATCH] ci: add deno stylecheck and lint --- .github/workflows/test.yml | 12 +++++++++--- deno.json | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f19555b..0dab015 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,26 +9,32 @@ on: jobs: test: - name: Run tests runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: deno-version: v1.x + - name: Install Dependencies run: | sudo apt-get update sudo apt-get install meson libglib2.0-dev - + - name: Create Build Environment run: meson setup ${{github.workspace}}/build - + - name: Build working-directory: ${{github.workspace}}/build shell: bash run: ninja + - name: Stylecheck + run: deno fmt --check + + - name: Lint + run: deno lint + - name: Test working-directory: ${{github.workspace}}/build shell: bash diff --git a/deno.json b/deno.json index 52456ab..c350f4f 100644 --- a/deno.json +++ b/deno.json @@ -4,5 +4,6 @@ }, "imports": { "https://github.com/ahgilak/deno_gi/raw/main/mod.ts": "./mod.ts" - } + }, + "exclude": ["subprojects", "build"] }