Add github workflow to verify code on every push on main #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |