ci: use extension verifier #201
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: Code Style | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
cs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pull verifier | |
run: docker pull ghcr.io/shopwarelabs/extension-verifier:latest | |
- name: Run CS | |
run: docker run --rm -e GITHUB_STEP_SUMMARY -v $GITHUB_STEP_SUMMARY:$GITHUB_STEP_SUMMARY -v $(pwd):/ext ghcr.io/shopwarelabs/extension-verifier:latest format /ext --dry-run | |
check: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
version-selection: [ 'lowest', 'highest'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pull verifier | |
run: docker pull ghcr.io/shopwarelabs/extension-verifier:latest | |
- name: Run Check | |
run: docker run --rm -e GITHUB_STEP_SUMMARY -v $GITHUB_STEP_SUMMARY:$GITHUB_STEP_SUMMARY -v $(pwd):/ext ghcr.io/shopwarelabs/extension-verifier:latest check /ext --check-against ${{ matrix.version-selection }} |