Skip to content

Handle malformed whole-line quoted Tradovate CSV rows #690

Handle malformed whole-line quoted Tradovate CSV rows

Handle malformed whole-line quoted Tradovate CSV rows #690

Workflow file for this run

name: Build Docker Images
on:
push:
branches: [main, develop]
tags: ['v*']
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'backend/package-lock.json'
- name: Install dependencies
run: cd backend && npm ci
- name: Run tests
run: cd backend && npm test
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Determine tags
id: tags
run: |
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
echo "tags=potentialmidas/tradetally:${{ github.ref_name }}" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == refs/heads/main ]]; then
echo "tags=potentialmidas/tradetally:latest" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == refs/heads/develop ]]; then
echo "tags=potentialmidas/tradetally:nightly" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.tags.outputs.tags }}