-
Notifications
You must be signed in to change notification settings - Fork 26
48 lines (42 loc) · 1.12 KB
/
run-nitrogen.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
44
45
46
47
48
name: Run Nitrogen
on:
push:
branches:
- main
paths:
- '.github/workflows/run-nitrogen.yml'
- '**/*.ts'
- '**/*.tsx'
- '**/*.js'
- '**/*.jsx'
- '**/*.json'
- '**/*.lockb'
- '**/package.json'
- 'packages/nitrogen/**'
pull_request:
paths:
- '.github/workflows/run-nitrogen.yml'
- '**/*.ts'
- '**/*.tsx'
- '**/*.js'
- '**/*.jsx'
- '**/*.json'
- '**/*.lockb'
- '**/package.json'
- 'packages/nitrogen/**'
jobs:
lint:
name: Run Nitrogen for example module (react-native-nitro-image)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (bun)
run: bun install
- name: Build all packages
run: bun run build
- name: Run nitro-codegen in packages/react-native-nitro-image
working-directory: packages/react-native-nitro-image
run: bun i && bun specs-ci
- name: Verify no files have changed after nitrogen
run: git diff --exit-code HEAD -- . ':(exclude)bun.lockb'