feat: add cache max-age of 5 seconds to ?live
requests so request collapsing works
#447
Workflow file for this run
This file contains 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: Integration Tests | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: integration-tests | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
version-type: strict | |
version-file: '.tool-versions' | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: packages/sync-service/deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('packages/sync-service/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Restore compiled code | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
packages/sync-service/_build/*/lib | |
!packages/sync-service/_build/*/lib/electric | |
key: ${{ runner.os }}-build-test-${{ hashFiles('packages/sync-service/mix.lock') }} | |
- name: Install dependencies | |
run: mix deps.get && mix deps.compile | |
working-directory: packages/sync-service | |
- name: Save compiled code | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
packages/sync-service/_build/*/lib | |
!packages/sync-service/_build/*/lib/electric | |
key: ${{ runner.os }}-build-test-${{ hashFiles('packages/sync-service/mix.lock') }} | |
- name: Compile | |
run: mix compile --force --all-warnings --warnings-as-errors | |
working-directory: packages/sync-service | |
- name: Setup lux | |
run: make | |
- name: Run integration tests | |
run: ./run.sh |