Merge pull request #194 from ngrok/stacks/update-dependencies #474
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
# Optional: allow read access to pull request. Use with `only-new-issues` option. | |
# pull-requests: read | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: cachix/install-nix-action@v18 | |
- uses: HatsuneMiku3939/direnv-action@v1 | |
- name: direnv allow | |
run: direnv allow . | |
- name: Run goimports | |
run: direnv exec . make -f scripts/Makefile fmt | |
- name: Lint | |
run: direnv exec . make -f scripts/Makefile lint | |
- name: Gen proto | |
run: direnv exec . make -f scripts/Makefile gen-proto | |
- name: Check diff | |
shell: bash | |
run: git diff --exit-code |