github.com/AbsaOSS/env-binder@v1.0.1/.github/workflows/lint.yaml (about)

     1  # Copyright 2021 The k8gb Contributors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  #
    15  # Generated by GoLic, for more details see: https://github.com/AbsaOSS/golic
    16  name: Lint, License
    17  on:
    18    push:
    19    pull_request:
    20      branches:
    21        - master
    22  
    23  jobs:
    24    go-inspect:
    25      name: Inspect packages
    26      runs-on: ubuntu-20.04
    27      steps:
    28        - uses: actions/checkout@v2
    29        # see: https://golangci-lint.run/usage/configuration/#config-file
    30        - name: Lint
    31          uses: golangci/golangci-lint-action@v2
    32          with:
    33            version: v1.46
    34  
    35        - name: GoLic
    36          run: |
    37            go install github.com/AbsaOSS/golic@v0.5.0
    38            golic inject --dry -x -t apache2
    39  
    40        - name: go test
    41          run: go test ./...