# run all tests for crawler-user-agents (python/php)

name: CI validation

on:
  # https://stackoverflow.com/questions/64635032/github-actions-run-on-push-to-all-branches
  push:
    branches:
      - '**'
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: node format.js --check
      - run: python3 -mpip install -U pip
      - run: python3 -mpip install -e .[dev]
      - run: py.test -vv
      - run: python3 validate.py
      - run: php validate.php
      - run: go test
