name: Test on: pull_request: branches: [ presets ] workflow_call: jobs: test: name: Test runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 with: fetch-depth: 0 - name: Setup NodeJS uses: actions/setup-node@v2 with: node-version: 17 - name: Setup metrics run: npm ci - name: Run tests run: npm run test-presets