Skip to content

fix fmt

fix fmt #29

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x # Run with latest stable Deno.
- run: deno fmt --check
- run: deno lint
- run: deno cache --reload main.js
- run: cd test && deno cache --reload test.js
- run: cd test && deno task test
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x # Run with latest stable Deno.
- run: deno compile --allow-net --allow-read --allow-write --target x86_64-unknown-linux-gnu -o jsonr-linux main.js
- run: deno compile --allow-net --allow-read --allow-write --target aarch64-unknown-linux-gnu -o jsonr-linux-arm main.js
- run: deno compile --allow-net --allow-read --allow-write --target x86_64-apple-darwin -o jsonr-apple main.js
- run: deno compile --allow-net --allow-read --allow-write --target aarch64-apple-darwin -o jsonr-apple-arm main.js
- run: deno compile --allow-net --allow-read --allow-write --target x86_64-pc-windows-msvc -o jsonr-windows main.js
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
jsonr-linux
jsonr-linux-arm
jsonr-apple
jsonr-apple-arm
jsonr-windows.exe