-
-
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.
refactor(test): use deno config file. cleanup workflows
- Loading branch information
1 parent
1edc04a
commit e4f5b89
Showing
10 changed files
with
472 additions
and
444 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 Hyper Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "packages/test/**" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "packages/test/**" | ||
tags: | ||
- 'hyper-test@*' | ||
|
||
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/test | ||
deno task test | ||
env: | ||
CI: true | ||
|
||
publish: | ||
if: startsWith(github.ref, 'refs/tags/hyper-test@') | ||
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/test | ||
# eggs publish --yes |
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,13 @@ | ||
{ | ||
"tasks": { | ||
"cache": "deno cache --import-map=import_map.json --lock=deno.lock --lock-write mod.js", | ||
"test": "deno lint && deno fmt --check" | ||
}, | ||
"fmt": { | ||
"include": ["./"], | ||
"exclude": ["./CHANGELOG.md"], | ||
"lineWidth": 100, | ||
"singleQuote": true, | ||
"semiColons": false | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.