Files
slsa-verifier/.github/workflows/pre-submit.cli.yml
Ian Lewis f439833d5e Add regression build tag (#400)
Signed-off-by: Ian Lewis <ianlewis@google.com>
2022-12-15 01:25:04 +00:00

40 lines
984 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@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3.1.2
- name: setup-go
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # tag=v3.3.1
with:
go-version: "1.18"
- name: Save event name
env:
EVENT_NAME: ${{ github.event_name }}
run: |
echo "$EVENT_NAME" > ./event_name.txt
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # tag=v3.1.1
with:
name: event_name
path: ./event_name.txt
- name: Run tests for verifier
run: |
set -euo pipefail
make regression-test