From 1d467c93d5c0156fa8e3249f8f0eae3ce62d2d25 Mon Sep 17 00:00:00 2001 From: James Netherton Date: Fri, 13 Dec 2019 09:21:14 +0000 Subject: [PATCH] Switch to GitHub actions --- .circleci/config.yml | 14 -------------- .github/workflows/pr-build.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/pr-build.yaml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 072f5cb..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: circleci/golang:1.10 - - working_directory: /go/src/github.com/jamesnetherton/m3u - - steps: - - checkout - - - run: - command: | - go test -v diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml new file mode 100644 index 0000000..c4e50a7 --- /dev/null +++ b/.github/workflows/pr-build.yaml @@ -0,0 +1,24 @@ +name: Build Pull Request + +on: + pull_request: + branches: + - master + push: + branches: + - master +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: 1.13.x + - name: Checkout code + uses: actions/checkout@v1 + - name: Test + run: go test -v