Add autorenewal interceptor #344
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: Registrations checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
paths: | |
- "registrations/**" | |
- ".github/workflows/ci-registrations.yml" | |
jobs: | |
mix-test: | |
runs-on: ubuntu-20.04 | |
services: | |
db: | |
image: postgis/postgis:16-3.4 | |
ports: ["5432:5432"] | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Checkout Github repo | |
uses: actions/checkout@v4 | |
- name: Sets up an Erlang/OTP environment | |
uses: erlef/setup-beam@v1 | |
with: | |
version-file: .tool-versions | |
version-type: strict | |
- name: Retrieve cached dependencies | |
uses: actions/cache@v4 | |
id: mix-cache | |
with: | |
path: | | |
registrations/deps | |
registrations/_build | |
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | |
- name: Install dependencies | |
working-directory: registrations | |
run: | | |
mix local.rebar --force | |
mix local.hex --force | |
mix deps.get | |
mix deps.compile | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
package_json_file: registrations/assets/package.json | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: registrations/assets/package.json | |
cache: pnpm | |
cache-dependency-path: registrations/assets/pnpm-lock.yaml | |
- name: Install Dependencies | |
run: pnpm install | |
working-directory: registrations/assets | |
- run: pnpm build | |
working-directory: registrations/assets | |
- uses: nanasess/setup-chromedriver@v2 | |
- run: | | |
export DISPLAY=:99 | |
chromedriver & | |
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & | |
- name: Wait for Chromedriver | |
run: sleep 90s | |
shell: bash | |
- run: mix test | |
working-directory: registrations | |
- name: Publish test results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
check_name: "Registrations test results" | |
files: registrations/_build/test/lib/registrations/test-junit-report.xml |