Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow change: Separate lint from test workflow #463

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request
on: pull_request
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- run: go version

- name: Run tidy
run: make tidy

- name: Run fmt
run: go fmt ./...

- name: Run linter
run: make lint

- name: Fail if changes
run: git diff-index --exit-code HEAD
12 changes: 0 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ jobs:
go-version: 'stable'
- run: go version

- name: Run tidy
run: make tidy

- name: Run fmt
run: go fmt ./...

- name: Fail if changes
run: git diff-index --exit-code HEAD

- name: Run linter
run: make lint

- name: Update system packages
run: sudo apt-get update -y

Expand Down
2 changes: 1 addition & 1 deletion tod_scripts