Skip to content

Commit

Permalink
chore: Extract reviewdog job from integration workflow (#2027)
Browse files Browse the repository at this point in the history
* Move lint-ci to other workflow

* Mess with imports intentionally

Expecting to get message on PR about the file not being `go-fumpt`ed.

* Change the order of checks

* Fix imports to pass linters

This is the revert of the intentional format change earlier.
  • Loading branch information
sfc-gh-asawicki committed Aug 22, 2023
1 parent beb2f98 commit 243fc28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/go-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@ jobs:
- name: Install golangci-lint
run: make dev-setup

- name: make lint-ci integration
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make lint-ci

- name: Run golangci-lint
run: make lint-check
12 changes: 0 additions & 12 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,9 @@ jobs:
- name: Install dependencies
run: make dev-setup

- name: make lint-ci integration
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
run: make lint-ci

- name: make test-acceptance integration
if: always()
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
Expand All @@ -76,7 +65,6 @@ jobs:
- name: sweepers cleanup
if: always()
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
Expand Down

0 comments on commit 243fc28

Please sign in to comment.