From 9cf30a998f23d85af5857d8c5e47799311da3140 Mon Sep 17 00:00:00 2001 From: fedyna-k Date: Wed, 15 Jan 2025 22:24:49 +0100 Subject: [PATCH] Added workflow --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fe315f8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: 'Check Deno code' + +on: + push: + branches: [ "main" ] + pull_request: + types: + - opened + branches: + - main + +permissions: + contents: read + +jobs: + check-code: + name: 'Check Deno code' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + + - name: Check formatting + run: deno fmt --check + + - name: Check linting + run: deno lint \ No newline at end of file