Skip to content

Use async/await to allow for async storage #116

Use async/await to allow for async storage

Use async/await to allow for async storage #116

Workflow file for this run

name: Build, lint and test
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: 'Install Dependencies'
id: install
run: npm install && npm install @react-native-async-storage/[email protected] [email protected]
- name: Run prettier
run: ./node_modules/.bin/prettier -c ./src
- name: Run eslint
run: ./node_modules/.bin/eslint ./src --color --max-warnings 0
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: 'Install Dependencies'
id: install
run: npm install && npm install @react-native-async-storage/[email protected] [email protected]
- name: 'Build Project'
id: build
run: npm run build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: 'Install Dependencies'
id: install
run: npm install && npm install @react-native-async-storage/async-storage [email protected]
- name: Run rests
run: npm run test