Skip to content

Pre submits cli

Pre submits cli #30

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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: setup-go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: "go.mod"
# not needed but gets rid of warnings
cache: false
- name: Save event name
env:
EVENT_NAME: ${{ github.event_name }}
run: |
echo "$EVENT_NAME" > ./event_name.txt
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: event_name
path: ./event_name.txt
- name: Run tests for verifier
run: |
set -euo pipefail
make regression-test