-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
63d5a82
commit 4bf96d9
Showing
3 changed files
with
62 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,62 @@ | ||
name: 🛠 Test & Deploy Utils | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "packages/utils/**" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "packages/utils/**" | ||
tags: | ||
- 'hyper-utils@*' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
deno-version: [1.x] | ||
|
||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ matrix.deno-version }} | ||
|
||
- name: ⚡ Run Tests | ||
run: | | ||
cd packages/utils | ||
deno task test | ||
env: | ||
CI: true | ||
|
||
publish: | ||
if: startsWith(github.ref, 'refs/tags/hyper-utils@') | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
# - name: 🥚 Setup Eggs CLI | ||
# run: | | ||
# deno install -A -f --unstable --no-check https://x.nest.land/[email protected]/eggs.ts | ||
# export PATH="/home/runner/.deno/bin:$PATH" | ||
# eggs link ${{ secrets.NESTAPIKEY }} | ||
|
||
# - name: 📘 Publish to Nest | ||
# run: | | ||
# cd packages/utils | ||
# eggs publish --yes |