Skip to content

build(deps-dev): bump @types/react-test-renderer from 18.0.3 to 18.0.6 #390

build(deps-dev): bump @types/react-test-renderer from 18.0.3 to 18.0.6

build(deps-dev): bump @types/react-test-renderer from 18.0.3 to 18.0.6 #390

Workflow file for this run

name: Publish
on:
push:
branches: ["main", "beta"]
pull_request:
branches: ["main", "beta", "next"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x, 16.x]
os: [ubuntu-latest]
steps:
- name: Begin CI
uses: actions/checkout@v2
#----------------------------------------------
# Setup Kernel for React Native
#----------------------------------------------
- name: Setup kernel for react native, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
#----------------------------------------------
# Setup Node Environment
#----------------------------------------------
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
#----------------------------------------------
# Cache modules
#----------------------------------------------
- name: Use cached node_modules
uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
#----------------------------------------------
# Install Dependencies
#----------------------------------------------
- name: Install dependencies
run: yarn install --frozen-lockfile
#----------------------------------------------
# Run unit tests
#----------------------------------------------
- name: Test
run: yarn testFinal
publish:
if: ${{github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')}}
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
#----------------------------------------------
# Setup Node Environment
#----------------------------------------------
- name: Use NodeJs 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
#----------------------------------------------
# Cache modules
#----------------------------------------------
- name: Use cached node_modules
uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
#----------------------------------------------
# Install dependencies
#----------------------------------------------
- name: Install dependencies
run: yarn install --frozen-lockfile
#----------------------------------------------
# Run unit tests
#----------------------------------------------
- name: Test
run: yarn testFinal
#----------------------------------------------
# Store coverage
#----------------------------------------------
- name: Upload coverage to Codacy
uses: codacy/[email protected]
with:
# API project token to retrieve your remote Codacy configuration for the project being analyzed
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# Optional comma separated list of coverage reports to send to Codacy
coverage-reports: ./coverage/lcov.info
#----------------------------------------------
# Build dist package
#----------------------------------------------
- name: Build
run: yarn prepare
# #----------------------------------------------
# # Codacy Security Analysis
# #----------------------------------------------
# - name: Run Codacy Analysis CLI
# uses: codacy/[email protected]
# with:
# # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# # You can also omit the token and run the tools that support default configurations
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# verbose: true
# output: results.sarif
# format: sarif
# # Adjust severity of non-security issues
# gh-code-scanning-compat: true
# # Force 0 exit code to allow SARIF file generation
# # This will handover control about PR rejection to the GitHub side
# max-allowed-issues: 2147483647
# #----------------------------------------------
# # Upload the SARIF file generated in the previous step
# #----------------------------------------------
# - name: Upload SARIF results file
# uses: github/codeql-action/upload-sarif@v1
# with:
# sarif_file: results.sarif
#----------------------------------------------
# Publish package
#----------------------------------------------
- name: Semantic Release
run: yarn semantic-release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}