Skip to content

Dont drop publication if manual_table_publishing is enabled #331

Dont drop publication if manual_table_publishing is enabled

Dont drop publication if manual_table_publishing is enabled #331

Workflow file for this run

name: Autoformat & Linting
# Note: For pull requests, GitHub Actions automatically creates a merge commit
# between your branch and the target branch (usually main), then runs checks on
# that merged state. This ensures the code will be properly formatted after merge.
# If this check fails, you may need to merge main into your branch first.
on:
push:
branches: ['main']
paths-ignore:
- 'website/**'
- '**/README.md'
pull_request:
paths-ignore:
- 'website/**'
- '**/README.md'
permissions:
contents: read
jobs:
typescript_formatting:
name: TypeScript formatting and linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.tool-versions'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check Prettier formatting
run: pnpm run format:check
- name: Check ESLint (all packages)
run: pnpm run stylecheck-all
elixir_formatting:
strategy:
matrix:
package: [sync-service, elixir-client, electric-telemetry]
name: Elixir formatting and linting
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/${{ matrix.package }}
env:
MIX_ENV: test
MIX_TARGET: application
MIX_OS_DEPS_COMPILE_PARTITION_COUNT: 4
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
version-type: strict
version-file: '.tool-versions'
- name: Restore dependencies cache
uses: actions/cache/restore@v4
with:
path: packages/${{ matrix.package }}/deps
key: "${{ runner.os }}-${{ matrix.package }}-deps-${{ env.MIX_ENV }}-${{ hashFiles('packages/${{ matrix.package }}/mix.lock') }}"
restore-keys: |
${{ runner.os }}-${{ matrix.package }}-deps-${{ env.MIX_ENV }}-${{ hashFiles('packages/${{ matrix.package }}/mix.lock') }}
${{ runner.os }}-${{ matrix.package }}-deps-${{ env.MIX_ENV }}-
${{ runner.os }}-${{ matrix.package }}-deps-
- name: Restore compiled code
uses: actions/cache/restore@v4
with:
path: |
packages/${{ matrix.package }}/_build/*/lib
!packages/${{ matrix.package }}/_build/*/lib/electric
!packages/${{ matrix.package }}/_build/*/lib/electric_client
!packages/${{ matrix.package }}/_build/*/lib/electric_telemetry
key: "${{ runner.os }}-${{ matrix.package }}-build-${{ env.MIX_ENV }}-${{ hashFiles('packages/${{ matrix.package }}/mix.lock') }}"
restore-keys: |
${{ runner.os }}-${{ matrix.package }}-build-${{ env.MIX_ENV }}-${{ hashFiles('packages/${{ matrix.package }}/mix.lock') }}
${{ runner.os }}-${{ matrix.package }}-build-${{ env.MIX_ENV }}-
${{ runner.os }}-${{ matrix.package }}-build-
- name: Install dependencies
run: mix deps.get
- name: Check Elixir formatting
run: mix format --check-formatted
- name: Check Elixir compiles without warnings
run: mix compile --force --all-warnings --warnings-as-errors