sync resources in the kubescape namespace #280
Workflow file for this run
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
name: pull_request_created | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review] | |
branches: | |
- 'main' | |
paths-ignore: | |
- '*.md' | |
- '*.yaml' | |
- '.github/workflows/*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pr-created: | |
uses: kubescape/workflows/.github/workflows/incluster-comp-pr-created.yaml@main | |
with: | |
GO_VERSION: "1.21" | |
CGO_ENABLED: 0 | |
secrets: inherit | |
component-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test: [ | |
"TestSynchronizer_TC01_InCluster", | |
"TestSynchronizer_TC01_Backend", | |
"TestSynchronizer_TC02_InCluster", | |
"TestSynchronizer_TC02_Backend", | |
"TestSynchronizer_TC04_InCluster", | |
"TestSynchronizer_TC04_Backend", | |
"TestSynchronizer_TC05_InCluster", | |
"TestSynchronizer_TC05_Backend", | |
"TestSynchronizer_TC06", | |
"TestSynchronizer_TC07", | |
"TestSynchronizer_TC08", | |
"TestSynchronizer_TC09", | |
"TestSynchronizer_TC10", | |
"TestSynchronizer_TC11", | |
"TestSynchronizer_TC12", | |
"TestSynchronizer_TC13_HTTPEndpoint", | |
] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
env: | |
CGO_ENABLED: 0 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
- name: Run test | |
run: | | |
echo "machine github.com login git password ${{ secrets.INGESTERS_READ_TOKEN }}" > ~/.netrc | |
cd tests && go test -v ./... -run ${{ matrix.test }} --timeout=20m --tags=integration |