Skip to content

add eslint group (#1995) #4701

add eslint group (#1995)

add eslint group (#1995) #4701

Workflow file for this run

name: Generator Tests
on:
workflow_dispatch:
push:
branches:
- '*'
- '!dependabot/**'
pull_request:
defaults:
run:
shell: bash
concurrency:
# Group by workflow and ref, limit to 1 for pull requests
group: ${{ github.workflow }}-${{ github.ref }}-${{ startsWith(github.ref, 'refs/pull/') || github.run_number }}
# Cancel intermediate pull request builds
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
lint-and-test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]') && !contains(github.event.ref_type, '[tag]')"
timeout-minutes: 20
strategy:
fail-fast: false
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 20.x
- run: git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit
- name: Config git variables
env:
JHI_SCRIPTS: ./test/scripts
run: $JHI_SCRIPTS/git-config.sh
- name: npm ci
run: npm ci
- name: lint and test
run: npm run test
- name: check-dependencies
run: |
cd generators/react-native/resources/expo
npm run check-dependencies
env:
EXPO_OFFLINE: 1