-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[non-prod] Migrate CI builds to Github Actions (#98)
[CONFIG-7] - Migrate from circleCI to github actions for the CI on branch pushes. - No longer need the snyk step in the CI job as the webhooks provide coverage for that requirement. - The build runs on a github-runner instead of within a docker container.
- Loading branch information
Showing
2 changed files
with
38 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: build | ||
on: | ||
- push | ||
jobs: | ||
build: | ||
name: Executes a full build | ||
runs-on: ubuntu-latest | ||
services: | ||
mysql: | ||
image: mysql:5.6 | ||
env: | ||
MYSQL_ROOT_PASSWORD: ctldbpw | ||
MYSQL_DATABASE: ctldb | ||
MYSQL_USER: ctldb | ||
MYSQL_PASSWORD: ctldbpw | ||
ports: | ||
- 3306:3306 | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: setup go 1.13 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.13 | ||
|
||
- name: Deps | ||
run: | | ||
make deps | ||
- name: Test | ||
run: | | ||
make test | ||
- name: build | ||
run: | | ||
make build |