mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-09 18:16:35 +00:00
40 lines
979 B
YAML
40 lines
979 B
YAML
name: Pre submits cli
|
|
on:
|
|
pull_request:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
# Used in combination with schedule.cli.yml
|
|
# to avoid duplicating the test code.
|
|
schedule:
|
|
- cron: "25 6 * * 5"
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
pre-submit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
|
|
- name: setup-go
|
|
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
|
|
with:
|
|
go-version-file: "go.mod"
|
|
|
|
- name: Save event name
|
|
env:
|
|
EVENT_NAME: ${{ github.event_name }}
|
|
run: |
|
|
echo "$EVENT_NAME" > ./event_name.txt
|
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
|
with:
|
|
name: event_name
|
|
path: ./event_name.txt
|
|
|
|
- name: Run tests for verifier
|
|
run: |
|
|
set -euo pipefail
|
|
make regression-test
|