React native library #78
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 of the visible action in the workflow overview | |
name: Checks | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: [development, main] | |
jobs: | |
test-and-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
# We need to fetch all commits so Lerna is able to properly determine the changed packages | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.20.1' | |
cache: 'npm' | |
- name: Install and link dependencies | |
run: npm ci | |
- name: Lint code | |
run: npm run lint | |
- name: Test changed packages | |
run: npm run test:packages |