mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
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@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.18
|
|
|
|
- name: Install dependencies
|
|
run: python3 --version && python3 install_dependencies.py
|
|
|
|
# - name: Test cmd pkg
|
|
# run: cd cmd && go test -v ./...
|
|
|
|
- name: Test core pkg
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: go test -v ./...
|
|
|
|
- name: Test httphandler pkg
|
|
run: cd httphandler && go test -v ./...
|
|
|
|
- name: Build
|
|
env:
|
|
RELEASE: v2.0.${{ github.run_number }}
|
|
CLIENT: test
|
|
ArmoBEServer: api.armo.cloud
|
|
ArmoAuthServer: auth.armo.cloud
|
|
ArmoERServer: report.armo.cloud
|
|
ArmoWebsite: portal.armo.cloud
|
|
CGO_ENABLED: 1
|
|
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
|
|
|