fix: Allow functions as properties again #322
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install npm dependencies (bun) | |
working-directory: example | |
run: bun install | |
- name: Install npm dependencies (bun) | |
working-directory: packages/nitrogen | |
run: bun install | |
- name: Install npm dependencies (bun) | |
working-directory: packages/react-native-nitro-modules | |
run: bun install | |
- name: Install npm dependencies (bun) | |
working-directory: packages/react-native-nitro-image | |
run: bun install | |
- name: Run nitro-codegen in packages/react-native-nitro-image | |
working-directory: packages/react-native-nitro-image | |
run: bun run nitro-codegen --logLevel="debug" | |
- name: Verify no files have changed after nitrogen | |
run: git diff --exit-code HEAD -- . ':(exclude)bun.lockb' |