Skip to content

Add github workflow to verify code on every push on main #1

Add github workflow to verify code on every push on main

Add github workflow to verify code on every push on main #1

Workflow file for this run

name: Verify Source
on:
push:
branches:
- main
jobs:
verify:
name: Verify Source
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Docker buildx
uses: docker/[email protected]
- name: Build Docker image - stage verify
uses: docker/[email protected]
with:
context: .
target: verify
cache-from: type=local,src=/buildx-cache
cache-to: type=local,dest=/buildx-cache-new
- name: Prevent consistently growing buildx cache
run:
rm -rf /buildx-cache
mv /buildx-cache-new /buildx-cache