Feature/2 enable GitHub action for cicd #13
Workflow file for this run
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: | |
pull_request: | |
branches: [ master, development ] | |
jobs: | |
build: | |
name: Lint go code with golangci | |
runs-on: ubuntu-latest | |
container: | |
image: golangci/golangci-lint:latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Make repo safe | |
run: git config --global --add safe.directory /__w/SOARCA/SOARCA | |
- name: lint | |
run: | | |
ls -la | |
golangci-lint run --timeout 5m -v | |
shell: bash | |