diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d90158..60aa565 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,10 @@ jobs: with: deno-version: "1.37.0" # Specify a compatible version + # Remove lockfile and cache dependencies - name: Build Executables run: | + rm -f deno.lock # Remove existing lockfile deno cache main.ts # Cache dependencies first deno task build diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml new file mode 100644 index 0000000..e13867c --- /dev/null +++ b/.github/workflows/test-build.yml @@ -0,0 +1,27 @@ +name: Test Build + +on: + # Runs on pushes to main/master + push: + branches: [ main, master ] + # Optionally, also run on pull requests to main/master + pull_request: + branches: [ main, master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: "1.37.0" + + - name: Test Build + run: | + rm -f deno.lock + deno cache main.ts + deno task build +