This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
removed pipeline (#53) #137
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
# Copyright 2021 ChainSafe Systems | |
# SPDX-License-Identifier: LGPL-3.0-only | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
name: CI Checks | |
jobs: | |
ci-checks: | |
strategy: | |
matrix: | |
go-version: [ 1.17.x ] | |
platform: [ ubuntu-latest ] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build | |
run: make install | |
- name: Unit tests | |
run: make test | |
- name: Gosec Security Scanner | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
go get github.com/securego/gosec/cmd/gosec | |
make check | |
- name: Lint check | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
args: --skip-dirs e2e -v --timeout 300s | |
- name: License check | |
run: make license-check | |
- name: E2E test | |
run: make e2e-test |