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
This commit is contained in:
CosminPerRam 2023-10-10 13:06:20 +03:00 committed by GitHub
parent 01794f6339
commit 0481be22f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

28
.github/workflows/deno.yml vendored Normal file
View File

@ -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

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
/npm-debug.log
/*.iml
/.idea
# Deno bin/gamedig executable
gamedig