release: version bump and docs for @notifee/[email protected] #824
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: Jest Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- 'docs-react-native/**' | |
- '**/*.md' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs-react-native/**' | |
- '**/*.md' | |
jobs: | |
jest: | |
name: Jest | |
timeout-minutes: 50 | |
runs-on: ubuntu-latest | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
steps: | |
- uses: styfle/[email protected] | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 50 | |
submodules: recursive | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v2 | |
name: Yarn Cache | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Yarn Install | |
uses: nick-invision/retry@v2 | |
with: | |
timeout_minutes: 10 | |
retry_wait_seconds: 60 | |
max_attempts: 4 | |
command: yarn --no-audit --prefer-offline | |
- name: Jest | |
run: yarn tests_rn:test | |
- name: Submit Coverage | |
# This can fail on timeouts etc, wrap with retry | |
uses: nick-invision/retry@v2 | |
with: | |
timeout_minutes: 3 | |
retry_wait_seconds: 60 | |
max_attempts: 3 | |
command: curl https://codecov.io/bash -o codecov.sh && bash ./codecov.sh |