Skip to content

Classifier test

Classifier test #1062

name: Classifier test
on:
schedule:
- cron: '0 0 1 * *'
env:
APP_NAME: recognize
jobs:
classifier:
runs-on: ubuntu-latest
name: Test classifier
strategy:
fail-fast: false
matrix:
pure-js-mode: ['true', 'false']
steps:
- name: Checkout app
uses: actions/checkout@v2
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v1.1
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v2
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Install app
run: |
make all
- name: Run classifier tests
env:
FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }}
RECOGNIZE_PUREJS: ${{ matrix.pure-js-mode }}
run: |
node tests/tests.js