-
-
Notifications
You must be signed in to change notification settings - Fork 54
43 lines (43 loc) · 1.5 KB
/
generator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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