25 lines
663 B
YAML
25 lines
663 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["**"]
|
|
push:
|
|
branches: ["integration", "bootstrap", "bootstrap-cicd"]
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build CI image
|
|
run: docker build -f ci.Dockerfile -t local/ci:latest .
|
|
|
|
- name: Lint
|
|
run: docker run --rm -v ${{ github.workspace }}:/workspace local/ci:latest bash -lc "cd /workspace && IN_CI_CONTAINER=1 scripts/ci lint"
|
|
|
|
- name: Build validation
|
|
run: docker run --rm -v ${{ github.workspace }}:/workspace local/ci:latest bash -lc "cd /workspace && IN_CI_CONTAINER=1 scripts/ci build"
|
|
|