From 9580e29d7801b2c47e4aee807326156e15c87e4f Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Thu, 4 Apr 2024 03:28:47 +0200 Subject: [PATCH] add workflow for PR --- .github/workflows/ci-validation.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci-validation.yml diff --git a/.github/workflows/ci-validation.yml b/.github/workflows/ci-validation.yml new file mode 100644 index 0000000..0888568 --- /dev/null +++ b/.github/workflows/ci-validation.yml @@ -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