-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): update release workflow and add test build
- Remove deno.lock before caching dependencies and building * Ensures fresh dependencies are cached/used * Prevents potential issues with stale lockfile - Add new test-build workflow * Runs on pushes/PRs to main/master branches * Tests building the project before merging changes
- Loading branch information
1 parent
59ecdf8
commit aae317f
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||