From 9cf30a998f23d85af5857d8c5e47799311da3140 Mon Sep 17 00:00:00 2001 From: fedyna-k Date: Wed, 15 Jan 2025 22:24:49 +0100 Subject: [PATCH 1/2] 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 From 645fd0cc691f8e16a520fbe2afdce9a0b64ba9b1 Mon Sep 17 00:00:00 2001 From: fedyna-k Date: Wed, 15 Jan 2025 22:28:14 +0100 Subject: [PATCH 2/2] At least it works --- .github/workflows/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe315f8..ecbecfd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,8 @@ -name: 'Check Deno code' +name: "Check Deno code" on: push: - branches: [ "main" ] + branches: ["main"] pull_request: types: - opened @@ -14,17 +14,17 @@ permissions: jobs: check-code: - name: 'Check Deno code' + name: "Check Deno code" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v2 - with: - deno-version: v2.x + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x - - name: Check formatting - run: deno fmt --check + - name: Check formatting + run: deno fmt --check - - name: Check linting - run: deno lint \ No newline at end of file + - name: Check linting + run: deno lint