Use go branch to import api util lib #152
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: Linting | |
on: | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
if: >- | |
github.event.pull_request.merged == false && | |
github.event.pull_request.state == 'open' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1 | |
- id: file_changes | |
uses: trilom/[email protected] | |
with: | |
output: " " | |
- uses: pre-commit/[email protected] | |
env: | |
extra_args: --color=always --files ${{ steps.file_changes.outputs.files}} |