From c5dbc8f7b172afbdc44c093b0e13d2210c75d20f Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Wed, 31 Jan 2024 08:56:29 +1100 Subject: [PATCH] add mac m1 action --- .github/workflows/images-test-mac-m1.yaml | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/images-test-mac-m1.yaml diff --git a/.github/workflows/images-test-mac-m1.yaml b/.github/workflows/images-test-mac-m1.yaml new file mode 100644 index 0000000..fc2f60f --- /dev/null +++ b/.github/workflows/images-test-mac-m1.yaml @@ -0,0 +1,43 @@ +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