github.com/IBM-Blockchain/fabric-operator@v1.0.4/.github/workflows/unit-tests.yaml (about) 1 # 2 # Copyright contributors to the Hyperledger Fabric Operator project 3 # 4 # SPDX-License-Identifier: Apache-2.0 5 # 6 # Licensed under the Apache License, Version 2.0 (the "License"); 7 # you may not use this file except in compliance with the License. 8 # You may obtain a copy of the License at: 9 # 10 # http://www.apache.org/licenses/LICENSE-2.0 11 # 12 # Unless required by applicable law or agreed to in writing, software 13 # distributed under the License is distributed on an "AS IS" BASIS, 14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 # See the License for the specific language governing permissions and 16 # limitations under the License. 17 # 18 19 name: unit-tests 20 21 on: 22 # TODO: uncomment this when moved to hyperledger-labs repo 23 # push: 24 # branches: [main] 25 pull_request: 26 branches: [main] 27 28 env: 29 GO_VER: 1.18 30 31 jobs: 32 make-checks: 33 runs-on: ubuntu-latest 34 steps: 35 - uses: actions/checkout@v3 36 - name: Set up go 37 uses: actions/setup-go@v3 38 with: 39 go-version: ${{ env.GO_VER }} 40 - name: license header checks 41 run: scripts/check-license.sh 42 # TODO: run in hyperledger-labs 43 # - name: gosec 44 # run: scripts/go-sec.sh 45 - name: run tests 46 run: make test