diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index cfd60cf..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: 2 - -jobs: - build: - docker: - - image: cimg/go:1.23.3 - steps: - - checkout - - run: sudo apt-get update && sudo apt-get -y -qq install python pip - - run: pip install pre-commit - - run: SKIP=no-commit-to-branch pre-commit run -a - - run: go test ./... - - run: make test diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f4adfae --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.18', '1.23.x' ] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - uses: pre-commit/action@v3.0.1 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - name: Run Go tests + run: go test ./... + - name: Run make tests + run: make test diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eeb9d98..eb994eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ repos: - repo: https://github.com/golangci/golangci-lint - rev: v1.44.2 + rev: v1.63.4 hooks: - id: golangci-lint - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v5.0.0 hooks: - id: trailing-whitespace \ No newline at end of file diff --git a/README.md b/README.md index 0112760..cc4877b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # makezero -[![CircleCI](https://circleci.com/gh/ashanbrown/makezero/tree/master.svg?style=svg)](https://circleci.com/gh/ashanbrown/makezero/tree/master) +[![GitHubCI](https://github.com/ashanbrown/makezero/actions/workflows/build.yml/badge.svg)](https://github.com/ashanbrown/makezero/actions/workflows/build.yml/) makezero is a Go static analysis tool to find slice declarations that are not initialized with zero length and are later used with append.