Github Action: Run aio tests #19
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
# Build validation | |
name: Build | |
on: | |
push: | |
branches-ignore: | |
- master | |
- experimental/** | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches-ignore: | |
- master | |
- experimental/** | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: ['22'] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm ci | |
run: npm ci | |
- name: npm run lint | |
run: npm run lint | |
- name: Setup CLI | |
uses: adobe/[email protected] | |
with: | |
os: ${{ matrix.os }} | |
version: 10.x.x | |
- name: aio app build | |
uses: adobe/[email protected] | |
with: | |
os: ${{ matrix.os }} | |
command: build | |
- name: aio app test | |
uses: adobe/[email protected] | |
with: | |
os: ${{ matrix.os }} | |
command: test | |
# Also runn the docker-based integration tests (normally run by aio app test) | |
- name: Install Docker | |
run: | | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
sudo usermod -aG docker $USER | |
docker --version | |
- name: Fix permissions | |
run: sudo chown -R $USER:$USER /home/runner/work/asset-compute-worker-svg-dimensions/asset-compute-worker-svg-dimensions | |
- name: npm run test | |
run: npm run test |