fix: typo in SequencingRunResults model repr #33
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
name: Build, test and push container | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
component: [backend, frontend] | |
steps: | |
- name: Checkout Source | |
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 | |
- name: Login to Quay.io | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: rosalindfranklininstitute+github_antigenapp | |
password: ${{ secrets.QUAYIO_TOKEN }} | |
- name: Build dev image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.component }} | |
target: dev | |
build-args: | | |
PIPENV_SYNC_FLAGS=--dev | |
platforms: linux/amd64 | |
load: true | |
tags: antigen-app-dev-${{ matrix.component }}:latest | |
- name: Run backend tests | |
if: ${{ matrix.component == 'backend' }} | |
run: | | |
docker run --rm -e DJANGO_CI=true antigen-app-dev-backend:latest pipenv run tests | |
- name: Run frontend tests | |
if: ${{ matrix.component == 'frontend' }} | |
run: | | |
docker run --rm -e CI=true antigen-app-dev-frontend:latest npm test | |
docker run --rm antigen-app-dev-frontend:latest npx prettier --check . | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
quay.io/rosalindfranklininstitute/antigen-app-${{ matrix.component }} | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: Build and push prod image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.component }} | |
target: prod | |
platforms: linux/amd64 | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |