-
Notifications
You must be signed in to change notification settings - Fork 10
68 lines (68 loc) · 2.14 KB
/
local-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: "test-local"
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: npm ci
- name: Testing / Linting
run: npm run test
- name: Package
run: npm run package
- name: Send a stream message
uses: ./send-message
with:
email: '[email protected]'
api-key: ${{ secrets.ZULIP_API_KEY }}
organization-url: 'https://github-actions-test.zulipchat.com'
to: 'test'
type: 'stream'
topic: 'github actions'
content: 'I come not, friends, to steal away your hearts.'
if: ${{ secrets.ZULIP_API_KEY != '' }}
- name: Send a private message
uses: ./send-message
with:
email: '[email protected]'
api-key: ${{ secrets.ZULIP_API_KEY }}
organization-url: 'https://github-actions-test.zulipchat.com'
to: '423060'
type: 'private'
content: 'With mirth and laughter let old wrinkles come.'
if: ${{ secrets.ZULIP_API_KEY != '' }}
failure:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: npm ci
- name: Testing / Linting
run: npm run test
- name: Package
run: npm run package
- name: Missing API key and password
uses: ./send-message
with:
email: '[email protected]'
organization-url: 'https://github-actions-test.zulipchat.com'
to: 'test'
type: 'stream'
topic: 'github actions'
content: 'I come not, friends, to steal away your hearts.'
continue-on-error: true
- name: Wrong organization URL
uses: ./send-message
with:
email: '[email protected]'
api-key: ${{ secrets.ZULIP_API_KEY }}
organization-url: 'https://org.zulipchat.com'
to: '282093'
type: 'private'
content: 'With mirth and laughter let old wrinkles come.'
continue-on-error: true