Skip to content

Commit

Permalink
add workflow for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus committed Apr 4, 2024
1 parent 34394c3 commit 9580e29
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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: pip3 install jsonschema pytest
- run: py.test -vv
- run: python3 validate.py
- run: php validate.php

0 comments on commit 9580e29

Please sign in to comment.