Skip to content

Commit

Permalink
chore: refactor ci (#37)
Browse files Browse the repository at this point in the history
* chore(ci): do all go stuff in golang action and only on go changes

* refactor(ci): use yaml anchors
  • Loading branch information
olexsmir authored Oct 17, 2024
1 parent 3208f70 commit 87e5f90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: golang
on:
push:
branches: [main]
paths: &go_files ["*.go", "go.mod", "go.sum"]
pull_request:
paths: *go_files

jobs:
release:
Expand All @@ -25,3 +27,13 @@ jobs:

- name: e2e tests
run: go test -v ./e2e/

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Golangci Lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: ./...
17 changes: 0 additions & 17 deletions .github/workflows/linter.yml

This file was deleted.

0 comments on commit 87e5f90

Please sign in to comment.