diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d1ef95d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build +on: + push: + branches: [master] + pull_request: + +jobs: + tests: + name: "tests" + runs-on: ubuntu-latest + strategy: + matrix: + deno-version: [1.45.3] + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: yarn install --frozen-lockfile + + - name: run prettier checker + run: yarn prettier:check + + - name: Use Deno Version ${{ matrix.deno-version }} + uses: denoland/setup-deno@v1 + with: + deno-version: ${{ matrix.deno-version }} + - name: run tests + run: deno task test