Enforce lower case #76
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
tests: | |
name: Tests (${{ matrix.name }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Dockerfile | |
expected: '["linux/amd64","linux/arm64"]' | |
expected_csv: 'linux/amd64,linux/arm64' | |
with: | |
dockerfile: tests/Dockerfile | |
- name: Supplied Image | |
expected: '["linux/amd64","linux/arm64"]' | |
expected_csv: 'linux/amd64,linux/arm64' | |
with: | |
image: ghcr.io/wyrihaximusnet/php:8.3-zts-alpine-dev | |
- name: Both | |
expected: '["linux/arm64","linux/amd64","linux/arm","linux/arm","linux/386"]' | |
expected_csv: 'linux/arm64,linux/amd64,linux/arm,linux/arm,linux/386' | |
with: | |
dockerfile: tests/Dockerfile | |
image: ghcr.io/home-assistant/home-assistant:2024.12.2 | |
- name: Multiple images | |
expected: '["linux/arm64","linux/amd64"]' | |
expected_csv: 'linux/arm64,linux/amd64' | |
with: | |
image: ghcr.io/home-assistant/home-assistant:2024.12.2,ghcr.io/wyrihaximusnet/php:8.3-zts-alpine-dev | |
- name: Multiple Dockerfiles | |
expected: '["linux/amd64","linux/arm64"]' | |
expected_csv: 'linux/amd64,linux/arm64' | |
with: | |
dockerfile: tests/Dockerfile* | |
- name: Enforce LowerCase (Dockerfile) | |
expected: '["linux/amd64","linux/arm64"]' | |
expected_csv: 'linux/amd64,linux/arm64' | |
with: | |
dockerfile: tests/Dockerfile-cameCase | |
- name: Enforce LowerCase (Image) | |
expected: '["linux/amd64","linux/arm64"]' | |
expected_csv: 'linux/amd64,linux/arm64' | |
with: | |
image: ghcr.io/WyriHaximusNet/php:8.3-zts-alpine-dev | |
steps: | |
- uses: actions/checkout@v4 | |
- name: OCI Image Supported Platforms | |
id: platforms | |
uses: ./ | |
with: ${{ matrix.with }} | |
- name: Assert ${{ matrix.name }} Platforms (JSON) | |
uses: nick-fields/assert-action@v2 | |
with: | |
expected: ${{ matrix.expected }} | |
actual: ${{ steps.platforms.outputs.platform }} | |
comparison: exact | |
- name: Assert ${{ matrix.name }} Platforms (CSV) | |
uses: nick-fields/assert-action@v2 | |
with: | |
expected: ${{ matrix.expected_csv }} | |
actual: ${{ steps.platforms.outputs.platform_csv }} | |
comparison: exact |