From 410c19848bdc19f679c0fb9aee62e05ab1109965 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Le Duigou Date: Mon, 18 Mar 2024 20:02:43 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20add=20CI=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..eddf95b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,29 @@ +name: Go +on: [push] +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.22 + uses: actions/setup-go@v5 + with: + go-version: 1.22 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + + - name: Get dependencies + run: | + go get -v -t -d ./... + + - name: Build + run: go build ./... + + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + args: --timeout 120s diff --git a/.gitignore b/.gitignore index 3b735ec..c80d30a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ # Go workspace file go.work + +# IntelliJ +.idea \ No newline at end of file