[Snyk] Security upgrade react-native from 0.74.2 to 0.76.0 #76
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: Lint🌸 and Test🧪 Mobile | |
on: | |
pull_request: | |
branches: | |
- develop | |
paths: [ | |
"frontend/occupi-mobile4/**", | |
".github/workflows/lint-test-mobile.yml" | |
] | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: frontend/occupi-mobile4 | |
jobs: | |
lint: | |
name: 🌸 Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout Repository | |
uses: actions/checkout@v4 | |
- name: 🏗 Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: 📦 Install Dependencies | |
run: npm install --legacy-peer-deps | |
- name: 🌸 Lint | |
run: npm run lint | |
test: | |
name: 🧪 Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout Repository | |
uses: actions/checkout@v4 | |
- name: 🏗 Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: 📦 Install Dependencies | |
run: npm install --legacy-peer-deps | |
- name: 🧪 Run Tests | |
run: npm run test:coverage | |
- name: 📋 Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage/lcov.info | |
fail_ci_if_error: true | |
verbose: true |