-
Notifications
You must be signed in to change notification settings - Fork 17
57 lines (55 loc) · 1.5 KB
/
tests.yaml
File metadata and controls
57 lines (55 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Run Test
on:
pull_request:
push:
paths-ignore:
- 'docs/**'
branches:
- "main"
schedule:
- cron: '0 4 * * 3' # Every Wednesday at 4:00 AM
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions:
contents: read
jobs:
event_file:
name: "Store event file"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: Event File
path: ${{ github.event_path }}
unit-tests:
if: |
!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]'
uses: ./.github/workflows/unit-tests.yaml
name: Unit tests
security-tests:
name: Security tests
needs: [unit-tests]
if: needs.unit-tests.result == 'success'
uses: ./.github/workflows/security-tests.yaml
secrets: inherit
integration-tests:
name: Integration tests
needs: [unit-tests]
if: needs.unit-tests.result == 'success'
uses: ./.github/workflows/integration-tests.yaml
with:
cnspecImageTag: ""
secrets: inherit
helm-tests:
name: Helm tests
needs: [unit-tests]
if: needs.unit-tests.result == 'success'
uses: ./.github/workflows/helm-tests.yaml
permissions:
contents: read
actions: read
checks: write
statuses: write
pull-requests: write
secrets:
MONDOO_TEST_ORG_TOKEN: ${{ secrets.MONDOO_TEST_ORG_TOKEN }}