chore(ci): move integration tests to GitHub Actions (#485)

* fix(standalone): add defer to close databases

* test(client/server): launch a server only once

* test(docker_engine): remove the duplicated case

* test(docker_engine): copy a database only once

* test(standalone): copy a database only once

* test(server): fix tests according to updated mock

* chore(mod): update

* chore(ci): add integration tests to GitHub Actions

* chore(ci): bump up Go to 1.14

* chore(ci): remove integration tests from CircleCI

* chore(ci): add name

* chore(ci): add new lines
This commit is contained in:
Teppei Fukuda
2020-05-05 11:14:28 +03:00
committed by GitHub
parent 415b99dab3
commit 09442d65f2
9 changed files with 158 additions and 126 deletions

View File

@@ -43,6 +43,7 @@ func run(c config.Config) (err error) {
if err != nil {
return xerrors.Errorf("unable to initialize the cache: %w", err)
}
defer cacheClient.Close()
cacheOperation := operation.NewCache(cacheClient)
log.Logger.Debugf("cache dir: %s", utils.CacheDir())
@@ -67,6 +68,7 @@ func run(c config.Config) (err error) {
if err = db.Init(c.CacheDir); err != nil {
return xerrors.Errorf("error in vulnerability DB initialize: %w", err)
}
defer db.Close()
var scanner scanner.Scanner
ctx := context.Background()