Skip to content

Commit

Permalink
Actually matrix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danschmidt5189 committed Dec 5, 2024
1 parent 6311df2 commit ac3cd4f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- id: meta
name: Construct image tags and labels
uses: docker/metadata-action@v5
Expand All @@ -68,13 +74,14 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
push: false
build-args: |
BUILD_TIMESTAMP=${{ github.event.repository.updated_at }}
BUILD_URL=${{ needs.setup.outputs.build_url }}
GIT_REF_NAME=${{ github.ref_name }}
GIT_REPOSITORY_URL=${{ github.repositoryUrl }}
GIT_SHA=${{ github.sha }}
platforms: ${{ matrix.platform }}
push: false
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}

Expand All @@ -86,7 +93,6 @@ jobs:
run: |
docker compose up --build --detach
sleep 10
docker compose exec app assets:precompile db:setup
- name: Run RSpec tests
run: |
Expand All @@ -103,5 +109,5 @@ jobs:
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-${{ matrix.platform }}
path: tmp/artifacts

0 comments on commit ac3cd4f

Please sign in to comment.