Skip to content

Commit

Permalink
Switch CI to github (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanbrown authored Jan 25, 2025
1 parent 400a290 commit 0ed5d40
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 16 deletions.
13 changes: 0 additions & 13 deletions .circleci/config.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 0ed5d40

Please sign in to comment.