Skip to content

Add Firefox user-agent when checking links #2183

Add Firefox user-agent when checking links

Add Firefox user-agent when checking links #2183

Workflow file for this run

name: Test suite
on:
- push
- workflow_dispatch
env:
# https://github.com/erlef/setup-beam#self-hosted-runners
ImageOS: ubuntu24
jobs:
lint:
name: 💅 Run lint tests
runs-on: ubuntu-latest
container: ghcr.io/transportdatagouvfr/ops:elixir-1.19.4-erlang-27.3.4.1-ubuntu-noble-20251013-transport-tools-2.0.0
steps:
- uses: actions/checkout@v6
- name: Checkout and compile
uses: ./.github/actions/checkout-compile
- name: Run gettext check
run: mix gettext.extract --check-up-to-date
- name: Run credo
run: mix credo --strict
- name: Check dependencies for security advisories
# Bump Hex: advisory scanning (not just retirements) landed in 2.5.0.
# For now, continue on error, to avoid blocking each PR. We will move it to a separate worfklow.
continue-on-error: true
run: |
mix local.hex 2.5.1 --force
mix hex.audit
- name: Run javascript linter
run: mix npm "run linter:ecma"
- name: Run stylesheets linter
run: mix npm "run linter:sass"
- name: Run formatter
run: mix format --check-formatted --dry-run
check_links:
name: 🔗 Check markdown links
runs-on: ubuntu-latest
container: ghcr.io/transportdatagouvfr/ops:elixir-1.19.4-erlang-27.3.4.1-ubuntu-noble-20251013-transport-tools-2.0.0
env:
LINK_CHECK_SKIP_HOSTS: www.researchgate.net,marketplace.visualstudio.com
steps:
- uses: actions/checkout@v6
- name: Checkout and compile
uses: ./.github/actions/checkout-compile
- name: Run link check
run: mix check_links
test:
name: ⚙️ Run the test suite
runs-on: ubuntu-latest
container: ghcr.io/transportdatagouvfr/ops:elixir-1.19.4-erlang-27.3.4.1-ubuntu-noble-20251013-transport-tools-2.0.0
env:
PG_URL_TEST: "ecto://postgres:postgres@postgres/transport_test"
services:
postgres:
image: timescale/timescaledb-ha:pg18.0-ts2.23.0
env:
POSTGRES_USER: postgres
POSTGRES_DB: transport_test
POSTGRES_PASSWORD: postgres
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v6
- name: Checkout and compile
uses: ./.github/actions/checkout-compile
- name: Run tests
run: mix test --warnings-as-errors