add github actions (#23) #5
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: Validate React Native Icon Pack | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/validate-react-native-icon-pack.yaml' | |
- 'react-native-icon-pack/' | |
pull_request: | |
paths: | |
- '.github/workflows/validate-react-native-icon-pack.yaml' | |
- 'react-native-icon-pack/' | |
merge_group: | |
branches: | |
- main | |
jobs: | |
check: | |
if: github.repository == 'software-mansion-labs/swm-icon-pack-react' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: cd react-native-icon-pack && yarn | |
- name: Prettier check | |
run: yarn format:native | |
- name: Eslint check | |
run: yarn lint:native |