From 676890f22f1a703a6c2bc246740e57cf475f9fa2 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Sun, 1 Aug 2021 14:45:09 +1000 Subject: [PATCH] Switch to GHA. --- .circleci/config.yml | 17 ----------------- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 17 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 5623d1c..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: cimg/base:2021.04 - steps: - - checkout - - run: - name: Test - command: | - . ./bin/activate-hermit - go test -v ./... - - run: - name: Lint - command: | - . ./bin/activate-hermit - golangci-lint run diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..334898c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +on: + push: + branches: + - master + pull_request: +name: CI +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Init Hermit + run: ./bin/hermit env -r >> $GITHUB_ENV + - name: Test + run: go test ./... + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Init Hermit + run: ./bin/hermit env -r >> $GITHUB_ENV + - name: golangci-lint + run: golangci-lint run