-
Notifications
You must be signed in to change notification settings - Fork 1.2k
40 lines (37 loc) · 1.07 KB
/
nightly-ci.yml
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
---
name: Nightly CI
on:
schedule:
- cron: '30 4 * * *'
workflow_dispatch:
inputs:
package_expr:
required: false
type: string
description: 'Package expression(s) passed to `go test`'
jobs:
defaults:
name: Check Input
runs-on: ubuntu-latest
outputs:
package_expr: ${{ steps.config.outputs.package_expr }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Make package expressions
id: config
if: ${{ !cancelled() && steps.checkout.conclusion == 'success' }}
run: |
if test -n "${{ inputs.package_expr }}"; then
printf 'package_expr=%s\n' '${{ inputs.package_expr }}' >> "$GITHUB_OUTPUT"
else
printf 'package_expr=%s\n' "$(go list -m github.com/quay/clair{core,}/... | awk '{printf("%s/... ",$1)}')" >> "$GITHUB_OUTPUT"
fi
tests:
name: Tests
needs: ['defaults']
uses: ./.github/workflows/tests.yml
with:
package_expr: ${{ needs.defaults.outputs.package_expr }}
qemu: true