-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,45 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: ['*'] | ||
pull_request: | ||
|
||
permissions: {} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v21 | ||
|
||
- name: Extract Tag | ||
id: extract_tag | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const prefix = 'refs/tags/v'; | ||
const ref = context.ref; | ||
return ref.startsWith(prefix) ? ref.substring(prefix.length) : ''; | ||
result-encoding: string | ||
|
||
- name: Lint | ||
run: nix develop --command make lint | ||
|
||
- name: Check Format | ||
run: nix develop --command make fmt-check | ||
|
||
- name: Run Tests | ||
run: nix develop --command make test | ||
|
||
- name: Publish to JSR | ||
run: nix develop --command deno publish |
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