From 83f7301705a00a2769618dcae8561548cead6858 Mon Sep 17 00:00:00 2001 From: Tim Sarbin Date: Sun, 2 Feb 2020 18:23:32 -0500 Subject: [PATCH] Added CircleCI (#289) * Added CircleCI * Removed the github workflow --- .circleci/config.yml | 11 +++++++++++ .github/workflows/go.yml | 32 -------------------------------- 2 files changed, 11 insertions(+), 32 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .github/workflows/go.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..bee1c566 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,11 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/golang:1.13 + working_directory: /go/src/github.com/OpenDiablo2/OpenDiablo2 + steps: + - checkout + - run: go get -v -t -d ./... + - run: go test -v ./... + - run: go build . diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index f4b0de82..00000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Pull Request Checker -on: - pull_request: - branches: - - master -jobs: - - 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: Install dependencies - run: sudo apt-get update && sudo apt-get install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libsdl2-dev libasound2-dev - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - - - name: Build - run: go build -v .