Skip to content

Commit

Permalink
ci: add deno stylecheck and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed Jun 10, 2024
1 parent 4274e96 commit 47fadc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
},
"imports": {
"https://github.com/ahgilak/deno_gi/raw/main/mod.ts": "./mod.ts"
}
},
"exclude": ["subprojects", "build"]
}

0 comments on commit 47fadc6

Please sign in to comment.