From 171d166b3974a7e5e8f552c38c1e95f0275a8299 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Tue, 26 Sep 2023 09:28:44 +0200 Subject: [PATCH] Switch to Github actions --- .circleci/config.yml | 19 ------------------- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 19 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/go.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index c139107..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Golang CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-go/ for more details -version: 2 -jobs: - build: - docker: - # specify the version - - image: circleci/golang:1.18 - - steps: - - checkout - - # run tests and report coverage - - run: go test -v -cover -race -coverprofile=coverage.txt ./... - - run: bash <(curl -s https://codecov.io/bash) - - # build binary - - run: go install github.com/digineo/go-dhclient/cmd/dhclient diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..c457320 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,24 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: [push] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...