Collect fission dump if CI tests fails & enable manual trigger (#2058)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -2,9 +2,12 @@ name: Fission CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# Job to run change detection
|
||||
@@ -23,7 +26,7 @@ jobs:
|
||||
- name: setup go
|
||||
uses: actions/setup-go@v2.1.3
|
||||
with:
|
||||
go-version: '1.15.12'
|
||||
go-version: "1.15.12"
|
||||
|
||||
- name: Helm installation
|
||||
uses: Azure/setup-helm@v1
|
||||
@@ -80,3 +83,16 @@ jobs:
|
||||
|
||||
- name: Integration tests
|
||||
run: ./test/kind_CI.sh
|
||||
|
||||
- name: Collect Fission Dump
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
fission support dump
|
||||
|
||||
- name: Archive fission dump
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: fission-support-dump
|
||||
path: fission-dump/*.zip
|
||||
retention-days: 5
|
||||
|
||||
@@ -23,25 +23,27 @@ TAG ?= dev
|
||||
|
||||
check: test-run build clean
|
||||
|
||||
# run basic check scripts
|
||||
test-run:
|
||||
code-checks:
|
||||
hack/verify-gofmt.sh
|
||||
hack/verify-govet.sh
|
||||
hack/verify-staticcheck.sh
|
||||
|
||||
# run basic check scripts
|
||||
test-run: code-checks
|
||||
hack/runtests.sh
|
||||
@rm -f coverage.txt
|
||||
|
||||
# ensure the changes are buildable
|
||||
build:
|
||||
go build -o cmd/fission-bundle/fission-bundle ./cmd/fission-bundle/
|
||||
go build -o cmd/fission-cli/fission ./cmd/fission-cli/
|
||||
build: build-cli
|
||||
go build -o cmd/fetcher/fetcher ./cmd/fetcher/
|
||||
go build -o cmd/fetcher/builder ./cmd/builder/
|
||||
go build -o cmd/reporter/reporter ./cmd/reporter/
|
||||
|
||||
# install CLI binary to $PATH
|
||||
install-cli: build
|
||||
mv cmd/fission-cli/fission $(GOPATH)/bin
|
||||
build-cli:
|
||||
go build -o cmd/fission-cli/fission ./cmd/fission-cli/
|
||||
|
||||
install-cli: build-cli
|
||||
mv cmd/fission-cli/fission /usr/local/bin
|
||||
|
||||
verify-builder:
|
||||
@./hack/buildx.sh
|
||||
|
||||
Reference in New Issue
Block a user