Skip to content

Commit

Permalink
Merge pull request #169 from snow-actions/update-ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
SnowCait authored Dec 28, 2024
2 parents 4b5d4d5 + 3996e44 commit 1151ac0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: monthly

- package-ecosystem: npm
directory: /
schedule:
interval: daily
interval: monthly
19 changes: 11 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,24 @@ jobs:
npm ci
npm run package
# kind 1 (default)
- uses: ./
- name: Default is kind 1
uses: ./
with:
relays: ${{ vars.NOSTR_RELAYS_TEST }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY_TEST }}
content: |
test
https://github.com/snow-actions/nostr
id: publish
- run: test $(echo "$event" | jq '.kind') = 1
env:
event: ${{ steps.publish.outputs.event }}
- run: test "$event" != ''
env:
event: ${{ steps.publish.outputs.event }}

# reply
- uses: ./
- name: Reply with tags
uses: ./
with:
relays: ${{ vars.NOSTR_RELAYS_TEST }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY_TEST }}
Expand All @@ -54,14 +57,14 @@ jobs:
env:
event: ${{ steps.publish-reply.outputs.event }}

# kind 2
- uses: ./
- name: Specify kind
uses: ./
with:
relays: ${{ vars.NOSTR_RELAYS_TEST }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY_TEST }}
content: wss://relay.nostr.wirednet.jp
kind: 2
id: publish-2
id: publish-kind
- run: test $(echo "$event" | jq '.kind') = 2
env:
event: ${{ steps.publish-2.outputs.event }}
event: ${{ steps.publish-kind.outputs.event }}

0 comments on commit 1151ac0

Please sign in to comment.