You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/03/22 15:56:36 UTC

[airflow-on-k8s-operator] branch master updated: Add build step in CI (#19)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow-on-k8s-operator.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c7b47f  Add build step in CI (#19)
4c7b47f is described below

commit 4c7b47f00dae290ad1a4d3d2c0cfe0c568dae696
Author: Tomek Urbaszek <tu...@gmail.com>
AuthorDate: Sun Mar 22 16:56:29 2020 +0100

    Add build step in CI (#19)
---
 .github/workflows/ci.yml | 16 ++++++++++++++++
 .gitignore               |  2 +-
 .pre-commit-config.yaml  |  1 +
 3 files changed, 18 insertions(+), 1 deletion(-)

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 @@ jobs:
           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 @@ bin/
 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 @@ repos:
     rev: master
     hooks:
       - id: go-fmt
+        name: Run Gofmt
         exclude: ^vendor/.*$
   - repo: local
     hooks: