Skip to content

Commit afb95e8

Browse files
committed
Test failure
1 parent 40984fc commit afb95e8

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

.github/workflows/local-test.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,35 @@ jobs:
3131
to: '282093'
3232
type: 'private'
3333
content: 'With mirth and laughter let old wrinkles come.'
34-
34+
failure:
35+
continue-on-error: true
36+
runs-on: ubuntu-20.04
37+
steps:
38+
- uses: actions/checkout@v2
39+
- run: npm ci
40+
- name: Testing / Linting
41+
run: npm run test
42+
- name: Package
43+
run: npm run package
44+
- name: "Check that packaging didn't create any changes"
45+
run: '[ -z "$(git status --porcelain)" ];'
46+
- name: Missing API key and password
47+
uses: ./
48+
with:
49+
username: 'ggrossetie@yuzutech.fr'
50+
organization-url: 'https://kroki.zulipchat.com'
51+
to: 'test'
52+
type: 'stream'
53+
topic: 'github actions'
54+
content: 'I come not, friends, to steal away your hearts.'
55+
- name: Wrong organization URL
56+
uses: ./
57+
with:
58+
username: 'ggrossetie@yuzutech.fr'
59+
api-key: ${{ secrets.ZULIP_API_KEY }}
60+
organization-url: 'https://org.zulipchat.com'
61+
to: '282093'
62+
type: 'private'
63+
content: 'With mirth and laughter let old wrinkles come.'
3564

3665

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,9 @@ async function run () {
817817
}
818818
}
819819

820-
run()
820+
;(async () => {
821+
await run()
822+
})()
821823

822824

823825
/***/ }),

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ async function run () {
6666
}
6767
}
6868

69-
run()
69+
;(async () => {
70+
await run()
71+
})()

0 commit comments

Comments
 (0)