From 410383af10988ed931824d27cea0892b184182af Mon Sep 17 00:00:00 2001 From: Benjamin Fischer Date: Wed, 18 Mar 2020 22:48:10 +0100 Subject: [PATCH] chore(ci): add ci github workflow --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..a40a8426 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: ci + +on: [push, pull_request] + +jobs: + + build: + name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + deno_version: ['v0.36.0', 'v0.35.0'] + + steps: + - name: Configure git + run: git config --global core.symlinks true + + - name: Clone repository + uses: actions/checkout@v2 + + - name: Configure environment variable's + run: | + echo "::set-env name=DENO_INSTALL::$HOME/.local" + echo "::add-path::$HOME/.local/bin" + + - name: Install deno ${{ matrix.deno_version }} + run: | + curl -fsSL https://deno.land/x/install/install.sh | sh -s ${{ matrix.deno_version }} + deno -h + + - name: Run test's + run: deno test --allow-env