Skip to content

Update README to include a link to a YouTube video demonstrating PG B… #72

Update README to include a link to a YouTube video demonstrating PG B…

Update README to include a link to a YouTube video demonstrating PG B… #72

name: Lint, test & build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-test-lint:
name: Build, test & lint
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: |
docker buildx create --use
docker buildx build \
--platform ${{ matrix.platform }} \
-t pbw-test-${{ matrix.platform }}:latest \
-f ./docker/Dockerfile.cicd \
--load .
- name: Run dependencies check
run: docker run --rm --platform ${{ matrix.platform }} pbw-test-${{ matrix.platform }}:latest task check-deps
- name: Run linter
run: docker run --rm --platform ${{ matrix.platform }} pbw-test-${{ matrix.platform }}:latest task lint-only
- name: Run tests
run: docker run --rm --platform ${{ matrix.platform }} pbw-test-${{ matrix.platform }}:latest task test-only
- name: Build project
run: docker run --rm --platform ${{ matrix.platform }} pbw-test-${{ matrix.platform }}:latest task build