Skip to content

add mac m1 action

add mac m1 action #1

name: Image test routine
on:
push:
branches:
- 'main'
- 'dev'
pull_request:
branches:
- 'main'
jobs:
test-suite:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12
- run: |
# set -x
docker version
docker compose version
docker-compose version
cat /etc/docker/daemon.json || true
cat /Users/runner/.docker/daemon.json || true
docker buildx version || true
docker buildx ls || true
docker run --rm hello-world
- name: Pull all images
run: |
docker compose pull --ignore-pull-failures
- name: Install test harness
run: |
yarn add leia-parser mocha chai@4 command-line-test
- name: Generate test files
run: |
yarn leia "TESTING*.md" test -r 2 -s 'Start up tests' -t 'Verification commands' -c 'Destroy tests' --split-file
- name: Run docker-compose tests
run: |
yarn mocha --timeout 900000 test/*compose*.func.js