From ca1153c9c8c2ed7ceb0ea3de128ae45e55620ed2 Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Tue, 20 Feb 2024 14:17:53 -0800 Subject: [PATCH] chore: replace CircleCI with Github Actions --- .circleci/config.yml | 18 ------------------ .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 18 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/ci.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b66bfbc..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,18 +0,0 @@ -version: 2.1 - -workflows: - version: 2 - test: - jobs: - - build-and-test - -jobs: - build-and-test: - docker: - - image: cimg/go:1.18 - environment: - GOPRIVATE: github.com/launchdarkly/*-private - steps: - - checkout - - run: make test - - run: make lint diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..137f8c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Run CI +on: + push: + branches: [ 'v2' ] + paths-ignore: + - '**.md' # Do not need to run CI for markdown changes. + pull_request: + branches: [ 'v2', 'feat/**' ] + paths-ignore: + - '**.md' + +env: + GOPRIVATE: github.com/launchdarkly/*-private + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ inputs.go-version }} + uses: actions/setup-go@v4 + with: + go-version: 1.18 + - name: Run tests + run: make test + - name: Run linter + run: make lint