Skip to content

Use go branch to import api util lib #150

Use go branch to import api util lib

Use go branch to import api util lib #150

Workflow file for this run

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}}