2022-03-22 11:03:15 -04:00
|
|
|
name: Golangci-lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
# Allow read access to pull request. Use with `only-new-issues` option.
|
|
|
|
pull-requests: read
|
|
|
|
|
2022-06-30 05:27:23 -04:00
|
|
|
# Abort runs of *this* workflow, if a new commit with the same ref is pushed.
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-03-22 11:03:15 -04:00
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
GOPRIVATE: github.com/edgelesssys/*
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2022-03-23 06:00:07 -04:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: sudo apt-get update && sudo apt-get -y install libcryptsetup-dev
|
|
|
|
|
2022-03-22 11:03:15 -04:00
|
|
|
- name: golangci-lint
|
|
|
|
uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
|
|
|
only-new-issues: true
|