feat(errors): domain-scoped Data Source Names #596
Workflow file for this run
This file contains hidden or 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: Hive | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "docs/**" | |
| - ".github/workflows/docs.yml" | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - "docs/**" | |
| - ".github/workflows/docs.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| MIX_ENV: test | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: tuist-linux | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| - name: Cache deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: deps-${{ runner.os }}- | |
| - name: Cache build | |
| uses: actions/cache@v5 | |
| with: | |
| path: _build | |
| key: build-${{ runner.os }}-${{ env.MIX_ENV }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: build-${{ runner.os }}-${{ env.MIX_ENV }}- | |
| - run: mix deps.get | |
| - run: mix compile --warnings-as-errors | |
| format: | |
| name: Format | |
| runs-on: tuist-linux | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| - name: Cache deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: deps-${{ runner.os }}- | |
| - name: Cache build | |
| uses: actions/cache@v5 | |
| with: | |
| path: _build | |
| key: build-${{ runner.os }}-${{ env.MIX_ENV }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: build-${{ runner.os }}-${{ env.MIX_ENV }}- | |
| - run: mix deps.get | |
| - run: mix format --check-formatted | |
| credo: | |
| name: Credo | |
| runs-on: tuist-linux | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| - name: Cache deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: deps-${{ runner.os }}- | |
| - name: Cache build | |
| uses: actions/cache@v5 | |
| with: | |
| path: _build | |
| key: build-${{ runner.os }}-${{ env.MIX_ENV }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: build-${{ runner.os }}-${{ env.MIX_ENV }}- | |
| - run: mix deps.get | |
| - run: mix credo | |
| gettext: | |
| name: Gettext | |
| runs-on: tuist-linux | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| - name: Cache deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: deps-${{ runner.os }}- | |
| - name: Cache build | |
| uses: actions/cache@v5 | |
| with: | |
| path: _build | |
| key: build-${{ runner.os }}-${{ env.MIX_ENV }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: build-${{ runner.os }}-${{ env.MIX_ENV }}- | |
| - run: mix deps.get | |
| - name: Check gettext templates | |
| run: | | |
| mix gettext.extract | |
| if [ -n "$(git status --porcelain -- priv/gettext)" ]; then | |
| git status --short -- priv/gettext | |
| git diff -- priv/gettext | |
| echo "::error title=Gettext templates out of sync::Run 'mix gettext.extract' and commit the generated priv/gettext files." | |
| exit 1 | |
| fi | |
| test: | |
| name: Test | |
| runs-on: tuist-linux | |
| needs: build | |
| services: | |
| postgres: | |
| image: postgres:18 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: hive_test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| - name: Cache deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: deps-${{ runner.os }}- | |
| - name: Cache build | |
| uses: actions/cache@v5 | |
| with: | |
| path: _build | |
| key: build-${{ runner.os }}-${{ env.MIX_ENV }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: build-${{ runner.os }}-${{ env.MIX_ENV }}- | |
| - run: mix deps.get | |
| - run: mix test |