Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/v8.2.0 #128

Merged
merged 364 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
364 commits
Select commit Hold shift + click to select a range
f9eb63b
Merge pull request #34 from nyaruka/testing
rowanseymour Feb 13, 2023
3ec4852
Update to latest goflow
rowanseymour Feb 13, 2023
b06d606
Update CHANGELOG.md for v8.1.18
rowanseymour Feb 13, 2023
8edd0b2
Stop writing Broadcast.send_all
rowanseymour Feb 13, 2023
f665556
Merge pull request #35 from nyaruka/drop_bcast_fields_pt1
rowanseymour Feb 13, 2023
bd54777
Update CHANGELOG.md for v8.1.19
rowanseymour Feb 13, 2023
9e7472e
Update test database
rowanseymour Feb 14, 2023
7086e9f
Cleanup broadcasts and starts
rowanseymour Feb 14, 2023
2114013
Merge pull request #36 from nyaruka/bcast_and_start_cleanup
rowanseymour Feb 14, 2023
ab8e1d2
Add task to send a single message
rowanseymour Feb 14, 2023
619a719
Change from task to web endpoint
rowanseymour Feb 14, 2023
8d1d5b6
Ensure messages are queued to courier
rowanseymour Feb 15, 2023
3ad7288
Add modified_on to send endpoint response
rowanseymour Feb 15, 2023
c1101a3
Merge pull request #37 from nyaruka/send_msg_task
rowanseymour Feb 15, 2023
2c8f390
Update CHANGELOG.md for v8.1.20
rowanseymour Feb 15, 2023
d09647b
Rework server and http wrappers
rowanseymour Feb 15, 2023
5eef188
Return 0 instead of an http code where the code is ignored because we…
rowanseymour Feb 15, 2023
81bef06
Merge pull request #38 from nyaruka/server_cleanup
rowanseymour Feb 15, 2023
38db0c7
Update CHANGELOG.md for v8.1.21
rowanseymour Feb 15, 2023
c4130a5
Use generics to remove repeated code in server endpoints
rowanseymour Feb 15, 2023
d4840c2
Rename web.JSONRequestResponse to MarshaledResponse
rowanseymour Feb 15, 2023
5adf913
Merge branch 'main' into server_generics
rowanseymour Feb 15, 2023
3cbe7ed
Merge pull request #39 from nyaruka/server_generics
rowanseymour Feb 16, 2023
61cc197
Update CHANGELOG.md for v8.1.22
rowanseymour Feb 16, 2023
8871f35
Use msg_type = T|V for outgoing messages
rowanseymour Feb 17, 2023
9a4eced
Update deps
rowanseymour Feb 20, 2023
e6b079c
Merge pull request #40 from nyaruka/msg_type_for_outgoing
rowanseymour Feb 20, 2023
fea2bd9
Update CHANGELOG.md for v8.1.23
rowanseymour Feb 20, 2023
0fcfa06
Support Msg.status = I for outgoing messages that should be retried
rowanseymour Feb 21, 2023
957a3a6
Rensending should set messages back to Q
rowanseymour Feb 22, 2023
77a2751
Update to latest goflow
rowanseymour Feb 22, 2023
481e402
Update CHANGELOG.md for v8.1.24
rowanseymour Feb 22, 2023
f214fee
Merge branch 'main' into msg_status_initializing
rowanseymour Feb 22, 2023
80a6ca6
Fix test
rowanseymour Feb 22, 2023
620f56b
Merge pull request #41 from nyaruka/msg_status_initializing
rowanseymour Feb 22, 2023
656aebe
Update CHANGELOG.md for v8.1.25
rowanseymour Feb 22, 2023
29f2ac3
Update test database
rowanseymour Feb 23, 2023
f23f6d6
Improve detection of repeated outgoing messages
rowanseymour Feb 27, 2023
a41f98a
Update goflow
rowanseymour Feb 27, 2023
e2402aa
Merge pull request #43 from nyaruka/better_repetition_detection
rowanseymour Feb 27, 2023
8182fca
Update CHANGELOG.md for v8.1.26
rowanseymour Feb 27, 2023
c125f0b
Add Msg.created_by
rowanseymour Mar 3, 2023
8498d8e
Set Msg.created_by for broadcast messages too
rowanseymour Mar 3, 2023
e513e91
Add test and fix msg insert sql
rowanseymour Mar 3, 2023
23ba745
Merge pull request #44 from nyaruka/msg_created_by
rowanseymour Mar 6, 2023
2ad79da
Update CHANGELOG.md for v8.1.27
rowanseymour Mar 6, 2023
278ec81
Re-organize web endpoints so each endpoint is in its own file
rowanseymour Mar 7, 2023
bf00213
Merge pull request #45 from nyaruka/web_reorg
rowanseymour Mar 7, 2023
101cfc6
Add endpoint to generate broadcast preview
rowanseymour Mar 7, 2023
2911a12
Remove msg_type values INBOX and FLOW
rowanseymour Mar 8, 2023
d248fb5
Merge pull request #47 from nyaruka/msg_type_text
rowanseymour Mar 8, 2023
ee58680
Update CHANGELOG.md for v8.1.28
rowanseymour Mar 8, 2023
b3bc6cf
Update test code to never let msg_type = NULL
rowanseymour Mar 8, 2023
4d4467d
Don't set msg_type when handling messages as courier is already setti…
rowanseymour Mar 13, 2023
0af8bd5
Merge pull request #48 from nyaruka/handler_msg_type_tweak
rowanseymour Mar 13, 2023
2f89302
Update CHANGELOG.md for v8.1.29
rowanseymour Mar 13, 2023
17a421a
Fix YYYY-MM-DD date formats
rowanseymour Mar 13, 2023
5b321ab
Merge pull request #49 from nyaruka/date_format_fix
rowanseymour Mar 13, 2023
b8cc3e5
Merge pull request #49 from nyaruka/date_format_fix
rowanseymour Mar 13, 2023
d255092
Update test database
rowanseymour Mar 13, 2023
34592f7
Bump courier http client timeout
rowanseymour Mar 14, 2023
4f4100a
Merge pull request #51 from nyaruka/courier_timeout
rowanseymour Mar 14, 2023
d736f9c
Merge pull request #50 from nyaruka/real_json_configs_pt1
rowanseymour Mar 14, 2023
20b9d18
Update CHANGELOG.md for v8.1.30
rowanseymour Mar 14, 2023
13db765
Remove support for broadcasts with an associated ticket
rowanseymour Mar 15, 2023
59a7cea
Remove no longer used exit type constants
rowanseymour Mar 15, 2023
f1400fb
Merge pull request #52 from nyaruka/remove_bcast_ticket_support
rowanseymour Mar 16, 2023
9186d95
Update CHANGELOG.md for v8.1.31
rowanseymour Mar 16, 2023
ba38a87
Fix not logging bodies of incoming IVR requests
rowanseymour Apr 3, 2023
d10bf7e
Merge pull request #53 from nyaruka/ivr_log_body_fix
rowanseymour Apr 3, 2023
4029077
Update CHANGELOG.md for v8.1.32
rowanseymour Apr 3, 2023
0434a8d
Use pg_restore with passswordy
rowanseymour Apr 12, 2023
68c0509
Cleanup TestNewOutgoingFlowMsg
rowanseymour Apr 13, 2023
ad6423d
Use envelope struct for marshalling courier messages
rowanseymour Apr 13, 2023
7113234
Remove Msg.Flow and only add to courier payload
rowanseymour Apr 13, 2023
9f7a24d
Merge pull request #54 from nyaruka/simpler_sending
rowanseymour Apr 13, 2023
3dfa6ff
Remove fields from courier payload that it doesn't use
rowanseymour Apr 13, 2023
dcb5d01
Add origin field to messages queued to courier
rowanseymour Apr 13, 2023
61187d2
Update CHANGELOG.md for v8.1.33
rowanseymour Apr 13, 2023
013e102
Add endpoint to inspect a contact
rowanseymour Apr 13, 2023
b4e058d
Rework inspect to take multiple contacts
rowanseymour Apr 14, 2023
25dbd8e
Merge pull request #55 from nyaruka/msg_json_diet
rowanseymour Apr 17, 2023
2f65371
Merge branch 'main' into msg_origin
rowanseymour Apr 17, 2023
43179d4
Add ticket_id to msg and use to set origin on messages queued to courier
rowanseymour Apr 17, 2023
2eda3bc
Merge pull request #56 from nyaruka/msg_origin
rowanseymour Apr 17, 2023
7e7a53a
Update CHANGELOG.md for v8.1.34
rowanseymour Apr 17, 2023
e243bb6
Fix goreleaser changelog generation and use latest action
rowanseymour Apr 18, 2023
20c2051
Update goreleaser config to exclude UPDATE CHANGELOG commits from cha…
rowanseymour Apr 18, 2023
401abe4
Update CHANGELOG.md for v8.1.35
rowanseymour Apr 18, 2023
50c4e46
Update codecov action
rowanseymour Apr 18, 2023
7add7a1
Use services for github actions
rowanseymour Apr 18, 2023
d069ee3
Merge pull request #58 from nyaruka/gha_services
rowanseymour Apr 18, 2023
b523813
Fix not queuing chat messages as high priority and add contact_last_s…
rowanseymour Apr 19, 2023
f0702ee
Merge pull request #59 from nyaruka/courier_queueing_updates
rowanseymour Apr 19, 2023
fdd8096
Merge branch 'main' into contact_inspect
rowanseymour Apr 19, 2023
0ed9b3e
Update CHANGELOG.md for v8.1.36
rowanseymour Apr 19, 2023
2979801
Merge branch 'main' into contact_inspect
rowanseymour Apr 20, 2023
62d877c
Omit empty on contact_last_seen_on
rowanseymour Apr 20, 2023
632cba6
Merge branch 'main' into contact_inspect
rowanseymour Apr 20, 2023
1dac491
Rework contact/inspect endpoint to return all URNs with channel if th…
rowanseymour Apr 20, 2023
6ab8442
Merge pull request #57 from nyaruka/contact_inspect
rowanseymour Apr 20, 2023
40ea1c9
Update CHANGELOG.md for v8.1.37
rowanseymour Apr 20, 2023
1f7b5b9
Only load the last opened open ticket for a contact
rowanseymour Apr 26, 2023
bd78d37
Fix tests
rowanseymour Apr 26, 2023
6b247f4
Merge pull request #60 from nyaruka/only_one_ticket
rowanseymour Apr 27, 2023
dac9468
Update test database
rowanseymour Apr 27, 2023
d50636e
Handled incoming messages should be associated with any open ticket
rowanseymour Apr 27, 2023
2131f88
Merge pull request #61 from nyaruka/handle_with_ticket
rowanseymour Apr 27, 2023
f280131
Update CHANGELOG.md for v8.1.38
rowanseymour Apr 27, 2023
c8d3a98
Refactor how we lock and unlock contacts
rowanseymour Apr 27, 2023
4dfb9a2
Merge pull request #62 from nyaruka/easier_locks
rowanseymour Apr 27, 2023
d839c1e
Update CHANGELOG.md for v8.1.39
rowanseymour Apr 27, 2023
087317d
Add contact locking to modify endpoint
rowanseymour Apr 28, 2023
c3d3f12
Add context paramter to LockContacts so it can error if context is done
rowanseymour Apr 28, 2023
9ce9f4e
Merge pull request #64 from nyaruka/lock_context
rowanseymour May 1, 2023
38704b7
Update CHANGELOG.md for v8.1.40
rowanseymour May 1, 2023
b534cf8
Merge branch 'main' into modify_locking
rowanseymour May 1, 2023
36f2575
Merge pull request #63 from nyaruka/modify_locking
rowanseymour May 1, 2023
8738da4
Update CHANGELOG.md for v8.1.41
rowanseymour May 1, 2023
8551657
Update to latest goflow which fixes parsing locations with non-ASCII …
rowanseymour May 3, 2023
dcb5048
Update CHANGELOG.md for v8.1.42
rowanseymour May 3, 2023
8fb67eb
Add contact locking to ticket/reopen endpoint
rowanseymour May 5, 2023
fc85247
Merge pull request #65 from nyaruka/reopen_locking
rowanseymour May 8, 2023
6aadf8b
Update CHANGELOG.md for v8.1.43
rowanseymour May 8, 2023
2020984
Fix comment
rowanseymour May 8, 2023
14c7ee1
Start writing exclusions blob on start batch tasks
rowanseymour May 8, 2023
7b60139
Merge pull request #66 from nyaruka/start_exclusions_1
rowanseymour May 8, 2023
e3e3a9a
Update CHANGELOG.md for v8.1.44
rowanseymour May 8, 2023
e893397
Flow start batches should read from exclusions and remove legacy fields
rowanseymour May 8, 2023
c85d37e
Merge pull request #67 from nyaruka/start_exclusions_2
rowanseymour May 9, 2023
377b0ac
Always write new FlowStart fields
rowanseymour May 9, 2023
5b4737d
Merge pull request #68 from nyaruka/start_exclusions_3
rowanseymour May 9, 2023
516d520
Update CHANGELOG.md for v8.1.45
rowanseymour May 9, 2023
0286973
Read from new flow start fields
rowanseymour May 9, 2023
4c828c1
Update to latest null library
rowanseymour May 10, 2023
dbbe06a
Merge branch 'main' into start_exclusions_4
rowanseymour May 10, 2023
a071d4a
Cleanup cruft
rowanseymour May 10, 2023
19e4317
Merge pull request #69 from nyaruka/start_exclusions_4
rowanseymour May 10, 2023
146a06c
Update CHANGELOG.md for v8.1.46
rowanseymour May 10, 2023
59b5b70
Stop writing old FlowStart fields
rowanseymour May 11, 2023
85ec069
Still queue a courier message even if fetching the flow fails
rowanseymour May 11, 2023
1028765
Merge pull request #71 from nyaruka/courier_flow_fix
rowanseymour May 11, 2023
5dc8e2d
Merge pull request #70 from nyaruka/start_exclusions_5
rowanseymour May 11, 2023
59a12bb
Update CHANGELOG.md for v8.1.47
rowanseymour May 11, 2023
7f93734
Update test database
rowanseymour May 15, 2023
0bf9af5
Fix loading of scheduled triggers
rowanseymour May 15, 2023
75d9575
Update CHANGELOG.md for v8.1.48
rowanseymour May 15, 2023
2311a13
Rework ResolveRecipients to use elastic
rowanseymour May 16, 2023
1b8f057
Fix tests (WIP)
rowanseymour May 16, 2023
9465f22
Add contact/bulk_create endpoint
rowanseymour May 18, 2023
5133512
Merge pull request #73 from nyaruka/bulk_create
rowanseymour May 18, 2023
44dabec
Remove support for ticket assignment with a note
rowanseymour May 18, 2023
f90e328
Merge pull request #74 from nyaruka/remove_assign_with_note
rowanseymour May 18, 2023
c6030d3
Update CHANGELOG.md for v8.1.49
rowanseymour May 18, 2023
a74b757
Merge branch 'main' into everything_a_query
rowanseymour May 18, 2023
435d66f
Fix tests
rowanseymour May 19, 2023
1013bdd
Make the name of the ES index for contacts configurable
rowanseymour May 19, 2023
c711d6d
Merge pull request #75 from nyaruka/config_contacts_index
rowanseymour May 19, 2023
b569709
Use real elasticsearch in tests
rowanseymour May 19, 2023
1e76b3e
Merge pull request #76 from nyaruka/real_es_testing
rowanseymour May 22, 2023
cd56890
Merge branch 'main' into everything_a_query
rowanseymour May 22, 2023
99557f1
Remove unused test method
rowanseymour May 22, 2023
ae2b048
Resetting elastic should re-index
rowanseymour May 22, 2023
8b5de4f
Update to latest rp-indexer with less logging
rowanseymour May 22, 2023
694b279
Merge pull request #77 from nyaruka/real_elastic_tests_2
rowanseymour May 22, 2023
66b2ced
Merge branch 'main' into everything_a_query
rowanseymour May 22, 2023
6bbf834
Fix tests (WIP)
rowanseymour May 22, 2023
313de4e
Remove support for passing URNs to flow/preview_start as that's not a…
rowanseymour May 22, 2023
40db988
Merge pull request #80 from nyaruka/remove_urns_from_preview_start
rowanseymour May 22, 2023
6eeb5c5
Merge branch 'main' into everything_a_query
rowanseymour May 22, 2023
8d60895
Cleanup TestBroadcastEvents and slightly reduce logging
rowanseymour May 22, 2023
3d4311c
Merge branch 'main' into everything_a_query
rowanseymour May 22, 2023
82f9071
Fix tests
rowanseymour May 22, 2023
fccaed8
Update CHANGELOG.md for v8.1.50
rowanseymour May 23, 2023
2a147bb
Optimize case when recipients is only specific contacts and no exclus…
rowanseymour May 23, 2023
bdbe3c3
Refresh elastic indexes after changes in tests instead of waiting for…
rowanseymour May 23, 2023
1bb2323
Merge pull request #81 from nyaruka/elastic_tweak
rowanseymour May 23, 2023
101b6bf
Merge branch 'main' into everything_a_query
rowanseymour May 23, 2023
86ec245
Fix intermitently failing test
rowanseymour May 23, 2023
062ec7f
Merge pull request #72 from nyaruka/everything_a_query
rowanseymour May 23, 2023
c63687d
Remove applying started-previously exclusion in runner now that it's …
rowanseymour May 23, 2023
ba2ccfc
Improve tests for start flow and send broadcast
rowanseymour May 23, 2023
300890e
Merge branch 'main' into exclusions_cleanup
rowanseymour May 23, 2023
383878b
Fix not passing exclusions to ResolveRecipients
rowanseymour May 23, 2023
3b1e240
Merge pull request #82 from nyaruka/exclusions_cleanup
rowanseymour May 24, 2023
a02e219
Update CHANGELOG.md for v8.1.51
rowanseymour May 24, 2023
2475767
Update to latest goflow
rowanseymour May 24, 2023
9ef3571
Update CHANGELOG.md for v8.1.52
rowanseymour May 24, 2023
43a870f
Rework firing campaign events so that skipping happens outside of runner
rowanseymour May 24, 2023
08ff832
Merge branch 'main' into preview_broadcast
rowanseymour May 24, 2023
64aea25
Test firing event fires for deleted flows or campaign events
rowanseymour May 24, 2023
6094177
Merge pull request #83 from nyaruka/campaign_fire_refactor
rowanseymour May 25, 2023
8143692
Update CHANGELOG.md for v8.1.53
rowanseymour May 25, 2023
cc6bf03
Merge branch 'main' into preview_broadcast
rowanseymour May 25, 2023
fccedf8
Fix tests
rowanseymour May 25, 2023
35227f5
Improve test for fire events tasks
rowanseymour May 25, 2023
6f9aad3
Merge pull request #84 from nyaruka/better_fires_test
rowanseymour May 25, 2023
08a04ff
Merge pull request #46 from nyaruka/preview_broadcast
rowanseymour May 25, 2023
b755e98
Update CHANGELOG.md for v8.1.54
rowanseymour May 25, 2023
da3afe0
Stop returning sample contacts on preview endpoints which now only ne…
rowanseymour May 25, 2023
e39a74c
Merge pull request #85 from nyaruka/preview_total_only
rowanseymour May 25, 2023
b3eed75
Rename BuildStartQuery to BuildRecipientsQuery for clarity
rowanseymour May 26, 2023
367ec3c
Stop writing ChannelLog.call
rowanseymour Jun 2, 2023
5b22dc4
Merge pull request #86 from nyaruka/s3_clogs_pt1
rowanseymour Jun 5, 2023
8c0f57e
Update CHANGELOG.md for v8.1.55
rowanseymour Jun 5, 2023
96d639e
Update test database
rowanseymour Jun 5, 2023
e6531c6
Use the user that created an import when applying its modifiers
rowanseymour Jun 7, 2023
0bb9aab
Support importing of contacts with non-active statuses
rowanseymour Jun 7, 2023
7327ff3
Merge pull request #87 from nyaruka/import_user_for_mods
rowanseymour Jun 7, 2023
9adf73d
Merge branch 'main' into inactive_contact_imports
rowanseymour Jun 7, 2023
651a1b7
Merge pull request #88 from nyaruka/inactive_contact_imports
rowanseymour Jun 8, 2023
237b665
Update CHANGELOG.md for v8.1.56
rowanseymour Jun 8, 2023
45a1f4a
Fix redaction of twiml IVR channel logs
rowanseymour Jun 20, 2023
7f9c61d
Merge pull request #89 from nyaruka/ivr_redaction_fix
rowanseymour Jun 20, 2023
c69cefa
Update CHANGELOG.md for v8.1.57
rowanseymour Jun 20, 2023
7752992
Write attached logs to S3 (WIP)
rowanseymour Jun 23, 2023
d6a8f88
Write attached logs to S3
rowanseymour Jun 27, 2023
9162d7b
Merge pull request #90 from nyaruka/s3_clogs_pt4
rowanseymour Jun 28, 2023
eecd26d
Rename sessions bucket config setting for clarity and remove unused s…
rowanseymour Jun 28, 2023
fdd38b6
Merge pull request #91 from nyaruka/config_tweak
rowanseymour Jun 28, 2023
04ecace
Update CHANGELOG.md for v8.1.58
rowanseymour Jun 28, 2023
913f719
Update README
rowanseymour Jun 28, 2023
0d5305c
Update CHANGELOG.md for v8.1.59
rowanseymour Jun 28, 2023
12be300
Tweak channel log creation to prevent nil slices
rowanseymour Jun 28, 2023
c31ae84
Update CHANGELOG.md for v8.1.60
rowanseymour Jun 28, 2023
46fb56b
Write channel logs with channels/ key prefex
rowanseymour Jun 28, 2023
87c8be9
Merge pull request #92 from nyaruka/clogs_tweak
rowanseymour Jun 28, 2023
3f82972
Update CHANGELOG.md for v8.1.61
rowanseymour Jun 28, 2023
7a19851
Fix session storage path generation
rowanseymour Jun 29, 2023
491828f
Update CHANGELOG.md for v8.1.62
rowanseymour Jun 29, 2023
5929c49
Support requesting recordings for Twilio with basic auth
norkans7 Jun 30, 2023
35faa87
Merge pull request #93 from nyaruka/twilio-basic-auth-attachments
rowanseymour Jul 3, 2023
09b4ee0
Update CHANGELOG.md for v8.1.63
rowanseymour Jul 3, 2023
e8db5bb
Update goflow
rowanseymour Jul 10, 2023
52f5b4f
Update CHANGELOG.md for v8.1.64
rowanseymour Jul 10, 2023
0f972ec
Limit how old surveyor submissions can be
rowanseymour Jul 18, 2023
da22bba
Merge pull request #95 from nyaruka/surveyor_age_limit
rowanseymour Jul 18, 2023
8aa8cf9
Update CHANGELOG.md for v8.1.65
rowanseymour Jul 18, 2023
6782e08
Support restoring test database inside docker container
rowanseymour Jul 19, 2023
38ee06d
Merge pull request #96 from nyaruka/docker_test_db
rowanseymour Jul 19, 2023
7f354eb
Update test databasee
rowanseymour Jul 19, 2023
348c363
Use dump file generated on another M1 mac
rowanseymour Jul 20, 2023
1e8681a
Merge pull request #97 from nyaruka/update_test_db
rowanseymour Jul 20, 2023
b888551
Update deps including gocommon which changes requirement for storage …
rowanseymour Jul 20, 2023
48bd4ce
Merge pull request #99 from nyaruka/update_deps
rowanseymour Jul 20, 2023
28b36fd
Update CHANGELOG.md for v8.1.66
rowanseymour Jul 20, 2023
208201a
Add dockerfile for dev
rowanseymour Jul 28, 2023
32de942
Update CHANGELOG.md for v8.2.0
rowanseymour Jul 31, 2023
d7d992d
Merge tag 'v8.2.0' of https://github.com/nyaruka/mailroom
rasoro Nov 26, 2024
fe21208
resolve compatibility conflicts and divergences between nyaruka/v8.2.…
rasoro Nov 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 29 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,32 @@ env:
jobs:
test:
name: Test
env:
pg-version: "14"
postgis-version: "3.2"
redis-version: "6.2"
runs-on: ubuntu-latest

services:
redis:
image: redis:6.2-alpine
ports:
- 6379:6379
postgres:
image: postgis/postgis:14-3.3-alpine
env:
POSTGRES_PASSWORD: temba
ports:
- 5432:5432
options: --name textit-postgres-1 --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
elastic:
image: elasticsearch:7.17.9
ports:
- 9200:9200
- 9300:9300
env:
discovery.type: single-node

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Redis
uses: zhulik/[email protected]
with:
redis version: ${{ env.redis-version }}

- name: Install PostgreSQL
uses: nyaruka/postgis-action@v2
with:
postgresql version: ${{ env.pg-version }}
postgis version: ${{ env.postgis-version }}
postgresql password: temba

- name: Install Linux packages
run: |
sudo apt-get update
Expand All @@ -51,10 +56,10 @@ jobs:

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
fail_ci_if_error: false

release:
name: Release
Expand All @@ -64,6 +69,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch GoFlow docs
# for backward compatibility, English docs are copied to root of docs directory
Expand All @@ -78,19 +85,17 @@ jobs:
go-version: ${{ env.go-version }}

- name: Publish release
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v4
if: ${{ !contains(github.ref, '-') }}
with:
version: v0.147.2
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish non-master release
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v4
if: contains(github.ref, '-')
with:
version: v0.147.2
args: release --rm-dist --skip-validate
args: release --clean --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading