Skip to content

Login to ghcr first #286

Login to ghcr first

Login to ghcr first #286

name: integration-tests
run-name: Run integration tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Get USER_ID to env
run: echo "USER_ID=$(id -u)" >> $GITHUB_ENV
- name: Get GROUP_ID to env
run: echo "GROUP_ID=$(id -g)" >> $GITHUB_ENV

Check failure on line 23 in .github/workflows/integration-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/integration-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker buildx bake --file src/docker/testing-bake.yml --file src/docker/docker-compose-gha-cache.json
- run: |
echo docker compose --env-file src/docker/.compose.testing.env \
-f src/docker/docker-compose-testing.yml run web pylint \
-E --disable E1101,E0307 --ignore-paths \
'.*\/migrations\/[0-9]+.*.py' analysis datasets dashboard home jobs kantele rawstatus
- run: |
docker compose --env-file src/docker/.compose.testing.env \
-f src/docker/docker-compose-testing.yml run web pylint \
-E --disable E1101,E0307 --ignore-paths \
'.*\/migrations\/[0-9]+.*.py' analysis datasets dashboard home jobs kantele rawstatus
integration-tests:
runs-on: ubuntu-latest
needs: linting
steps:
- uses: actions/checkout@v4
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Get USER_ID to env
run: echo "USER_ID=$(id -u)" >> $GITHUB_ENV
- name: Get GROUP_ID to env
run: echo "GROUP_ID=$(id -g)" >> $GITHUB_ENV
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker buildx bake --file src/docker/testing-bake.yml --file src/docker/docker-compose-gha-cache.json
- run: bash .github/run_tests_integration.sh
unit-tests:
runs-on: ubuntu-latest
needs: linting
steps:
- uses: actions/checkout@v4
- run: bash .github/run_tests_unit.sh