mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
39 lines
990 B
YAML
39 lines
990 B
YAML
name: master-pr
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
types: [ edited, opened, synchronize, reopened ]
|
|
jobs:
|
|
build:
|
|
name: Create cross-platform build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|
|
|
|
- name: Build
|
|
env:
|
|
RELEASE: v2.0.${{ github.run_number }}
|
|
ArmoBEServer: api.armo.cloud
|
|
ArmoERServer: report.armo.cloud
|
|
ArmoWebsite: portal.armo.cloud
|
|
CGO_ENABLED: 0
|
|
run: python3 --version && python3 build.py
|
|
|
|
- name: Smoke Testing
|
|
env:
|
|
RELEASE: v2.0.${{ github.run_number }}
|
|
KUBESCAPE_SKIP_UPDATE_CHECK: "true"
|
|
run: python3 smoke_testing/init.py ${PWD}/build/${{ matrix.os }}/kubescape
|
|
|