Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hspitzley-czi committed Feb 23, 2024
1 parent 7bdce94 commit 5455149
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,13 @@ jobs:
strategy:
matrix:
gopkg: ${{ fromJson(needs.find-changed-packages.outputs.changedPackages) }}
# target:
# - test-ci
# - lint-ci

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ${{ matrix.gopkg }}/go.mod
# - name: Install dependencies
# run: make setup
# working-directory: ${{ matrix.gopkg }}

- name: golangci-lint
- name: Run golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -47,10 +40,8 @@ jobs:
reporter: github-pr-review
golangci_lint_flags: "--config=../.golangci.yml --out-format=line-number -v --timeout 5m"
workdir: ${{ matrix.gopkg }}
- run: make test-ci
# env:
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: make ${{ matrix.target }}
- name: Run tests
run: make test-ci
working-directory: ${{ matrix.gopkg }}

# this job exists to give us something to make a required check on that will ensure all CI runs are complete
Expand Down
8 changes: 0 additions & 8 deletions .reviewdog.yml

This file was deleted.

14 changes: 6 additions & 8 deletions scripts/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ clean: ## clean the repo
.PHONY: clean

setup:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh
brew install golangci-lint
brew upgrade golangci-lint
brew install reviewdog/tap/reviewdog
brew upgrade reviewdog/tap/reviewdog
.PHONY: setup

lint: ## run lint on changes from main
./bin/reviewdog -conf ../.reviewdog.yml -diff "git diff main"
reviewdog -conf ../.reviewdog.yml -diff "git diff main"
.PHONY: lint

lint-ci: ## run lint in CI, posting to PRs
./bin/reviewdog -conf ../.reviewdog.yml -reporter=github-pr-review -tee -level=info
.PHONY: lint-ci

lint-all: ## run linters across all code
./bin/reviewdog -conf ../.reviewdog.yml -filter-mode nofilter
reviewdog -conf ../.reviewdog.yml -filter-mode nofilter
.PHONY: lint-all

deps:
Expand Down

0 comments on commit 5455149

Please sign in to comment.