From 0481be22f8f2efd0c83afe52e115d9d3e92f2899 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Tue, 10 Oct 2023 13:06:20 +0300 Subject: [PATCH] Add Deno to CI (#377) * Add Deno to CI * Remove lint and comments from ci file * Replace test by compile * Specify to build bin/gamedig and ignore the resulting exe --- .github/workflows/deno.yml | 28 ++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/deno.yml diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 0000000..c2aa5db --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,28 @@ + +name: Deno + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + +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 + + - name: Compile + run: deno compile --allow-read bin/gamedig.js diff --git a/.gitignore b/.gitignore index 9bbce42..c6b9c72 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /npm-debug.log /*.iml /.idea +# Deno bin/gamedig executable +gamedig