Add build step in CI (#19)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d566d98..ec277a9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -36,3 +36,19 @@
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/action@v1.0.1
+
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+ steps:
+ - name: Set up Go 1.13
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.13
+ id: go
+ - name: Check out code into the Go module directory
+ uses: actions/checkout@v2
+ - name: Get dependencies
+ run: go mod download
+ - name: Build
+ run: go build -v .
diff --git a/.gitignore b/.gitignore
index c0791dd..d975d6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,4 @@
cover.out
pkg/controller/airflowbase/templates
pkg/controller/airflowcluster/templates
-.idea/.*
+.idea/
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1860a7b..40d062a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -19,6 +19,7 @@
rev: master
hooks:
- id: go-fmt
+ name: Run Gofmt
exclude: ^vendor/.*$
- repo: local
hooks: