mirror of
https://github.com/suitenumerique/messages.git
synced 2026-09-23 18:25:01 +02:00
- Added multipart upload capabilities for EML and MBOX files to the message imports bucket. - Introduced new API endpoints for initiating uploads, completing uploads, and aborting uploads. - Updated serializers and viewsets to handle file uploads efficiently. - Improved frontend components to display upload progress and handle file uploads seamlessly. - Adjusted backend services to process uploaded files asynchronously, ensuring better performance and user experience. - Updated documentation and tests to reflect the new functionality.
138 lines
3.3 KiB
YAML
138 lines
3.3 KiB
YAML
name: Lint and tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
|
|
env:
|
|
COMPOSE_BAKE: true
|
|
|
|
jobs:
|
|
|
|
lint-back:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Create env files
|
|
run: make create-env-files
|
|
- name: Run linting checks
|
|
run: make back-lint
|
|
|
|
|
|
test-back:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_USER: 1001
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Create env files
|
|
run: make create-env-files
|
|
- name: Setup data directories
|
|
run: |
|
|
mkdir -p data/media data/static
|
|
chown -R 1001:1001 data
|
|
- name: Collect static files
|
|
run: make collectstatic
|
|
- name: Create msg-imports bucket
|
|
run: make import-bucket
|
|
- name: Run backend tests
|
|
run: make back-test
|
|
|
|
test-front:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Create env files
|
|
run: make create-env-files
|
|
- name: Install frontend dependencies
|
|
run: make front-install-frozen
|
|
- name: Run frontend tests
|
|
run: make front-test
|
|
|
|
lint-front:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Create env files
|
|
run: make create-env-files
|
|
- name: Install frontend dependencies
|
|
run: make front-install-frozen
|
|
- name: Run frontend linting
|
|
run: make front-lint
|
|
- name: Run frontend check
|
|
run: make front-ts-check
|
|
|
|
build-front:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Create env files
|
|
run: make create-env-files
|
|
- name: Install frontend dependencies
|
|
run: make front-install-frozen
|
|
- name: Build frontend
|
|
run: make front-build
|
|
|
|
check-api-state:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Create env files
|
|
run: make create-env-files
|
|
- name: Install frontend dependencies
|
|
run: make front-install-frozen
|
|
- name: Run API update
|
|
run: make api-update
|
|
- name: Check for changes
|
|
run: |
|
|
git diff --quiet || \
|
|
(echo "API changes detected. Please run 'make api-update' then commit the changes." && exit 1)
|
|
|
|
docker-publish-mta-in:
|
|
uses: ./.github/workflows/docker-publish.yml
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
attestations: write
|
|
id-token: write
|
|
secrets: inherit
|
|
with:
|
|
image_name: "mta-in"
|
|
context: "src/mta-in"
|
|
target: runtime-prod
|
|
|
|
docker-publish-mta-out:
|
|
uses: ./.github/workflows/docker-publish.yml
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
attestations: write
|
|
id-token: write
|
|
secrets: inherit
|
|
with:
|
|
image_name: "mta-out"
|
|
context: "src/mta-out"
|
|
target: runtime-prod
|
|
|
|
docker-publish-socks-proxy:
|
|
uses: ./.github/workflows/docker-publish.yml
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
attestations: write
|
|
id-token: write
|
|
secrets: inherit
|
|
with:
|
|
image_name: "socks-proxy"
|
|
context: "src/socks-proxy"
|