GitHub actions (#7035)

* Trying to setup GitHub Actions

* Try to fix the workflow steps

* Fix NODE_VERSION

* Fix services

* Fix services 2

* Fix redis service, remove docker service

* Missing npm install

* Fix Use Node.js step name

* Remove greenkeeper

* I believe we do not need this command

* Try to include postgres

* Fix postgres script

* Remove before install script

* Fix postgres before script

* Try to fix connection to postgres

* Fix postgress port

* Postgres host

* Still trying to connect on postgres

* Still trying to connect on postgres - localhost

* Split postgres in a separate job

* Add postgres healthcheck

* Set postgres just like github example

* Fix postgres scripts with new credentials

* Still trying to fix postgres connection

* Now it looks only the username is wrong

* Passing postgres password in the right way

* try to install postgis

* New attempt to install postgis

* Fix postgis image name

* Try to output tests

* We need to start mongo

* Increase tests timeout

* Fix flaky test

* Add GitHub Actions badge

* Badge as html

* Fix badge link

* Remove Travis

* try to fix coverage

* Fix flaky test

* Improve ci workflow

* Change the mongo default test version

* Fix the job name in the if clause

* Ubuntu18.0.4

* Downgrade to 4.0.21

* Fix cache keys:

* Trying with mongo 4.0.4

* Rever os and mongo versions

* remove latest node
This commit is contained in:
Antonio Davi Macedo Coelho de Castro
2020-12-03 08:15:48 -08:00
committed by GitHub
parent da905a357d
commit 54a61b7694
6 changed files with 123 additions and 123 deletions

View File

@@ -1633,9 +1633,8 @@ describe('Cloud Code', () => {
it('should set the message / success on the job', done => {
Parse.Cloud.job('myJob', req => {
req.message('hello');
const promise = req
.message()
.message('hello')
.then(() => {
return getJobStatus(req.jobId);
})
@@ -1716,9 +1715,15 @@ describe('Cloud Code', () => {
throw new Parse.Error(101, 'Something went wrong');
});
const job = await Parse.Cloud.startJob('myJobError');
const jobStatus = await Parse.Cloud.getJobStatus(job);
let jobStatus, status;
while (status !== 'failed') {
if (jobStatus) {
await new Promise(resolve => setTimeout(resolve, 10));
}
jobStatus = await Parse.Cloud.getJobStatus(job);
status = jobStatus.get('status');
}
expect(jobStatus.get('message')).toEqual('Something went wrong');
expect(jobStatus.get('status')).toEqual('failed');
});
function getJobStatus(jobId) {