From 865db7194e726b5d5c9b9f789056da0225897fcf Mon Sep 17 00:00:00 2001 From: Evgeniy Scherbina Date: Fri, 15 Dec 2023 11:30:48 -0500 Subject: [PATCH] Added Github Actions CI (#1) --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ .github/workflows/go.yml | 23 --------------------- 2 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..be52bf9a49 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: Continuous Integration (Default Checks) + +on: + push: + pull_request: + workflow_dispatch: + +env: + TEST_PACKAGES: ./... + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.4' + - name: run linter + run: go run build/ci.go lint + + install: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.4' + - name: build all binaries from cmd + run: go run build/ci.go install + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.4' + - name: run tests + run: go run build/ci.go test $TEST_PACKAGES \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 7924c521e8..0000000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: i386 linux tests - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - build: - runs-on: self-hosted - steps: - - uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.21.4 - - name: Run tests - run: go test ./... - env: - GOOS: linux - GOARCH: 386