From 980008e4df05cfbd4f11145abd1d283b213ed566 Mon Sep 17 00:00:00 2001 From: uki00a Date: Sun, 4 Jul 2021 15:19:41 +0900 Subject: [PATCH] ci: Setup CI --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 0000000..12fa8d4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: ci +on: + push: + branches: + - main + pull_request: + branches: + - "**" +jobs: + build: + name: ${{ matrix.kind }} ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] # [ubuntu-latest, windows-latest] + steps: + - uses: actions/checkout@master + - uses: denoland/setup-deno@main + with: + deno-version: "1.11.3" + - name: Run linter + if: matrix.os == 'ubuntu-latest' + run: | + deno fmt --check + deno lint + - name: Check mod.ts + run: | + deno cache mod.ts + - name: Run tests + run: | + deno test