Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update dependencies and setup GitHub Actions CI #92

Merged
merged 8 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2
updates:
# Dependencies updates config for SDK
- package-ecosystem: "npm"
directory: "/src"
schedule:
interval: "monthly"
commit-message:
prefix: "chore"
include: "scope"

# Dependencies updates config for examples
- package-ecosystem: "npm"
directory: "/demo"
schedule:
interval: "monthly"
commit-message:
prefix: "chore"
include: "scope"
ignore:
# Package in example is accessed by path,
# do not update in package.json.
- dependency-name: "raygun4reactnative"

# Github Actions dependencies updates config
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
commit-message:
prefix: "chore"
include: "scope"
12 changes: 10 additions & 2 deletions .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
with:
node-version: '20'

- name: Run npm Install
- name: Build SDK
working-directory: sdk
run: npm install

- name: Install dependencies
run: npm install --install-links

- name: Build application
run: |
cd android
Expand All @@ -47,9 +51,13 @@ jobs:
with:
node-version: '20'

- name: Run npm Install
- name: Build SDK
working-directory: sdk
run: npm install

- name: Install dependencies
run: npm install --install-links

- name: Pod Install
working-directory: demo/ios
run: pod install
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/sdk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: SDK CI
on: [ push, pull_request ]
jobs:
sdk-checks:
runs-on: ubuntu-latest
defaults:
run:
working-directory: sdk
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Run npm Install
run: npm install

# TODO: Check Lint
14 changes: 14 additions & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This folder contains the demo application for Raygun4ReactNative.

This project uses the sdk package code located in this repository in the `../sdk` folder.

## Setup

We recommend using `npx` to setup and run this demo project.
Expand All @@ -12,6 +14,18 @@ Install with `npm install -g npx` if not present already in your system.

Verify your system setup running `npx react-native doctor` and follow the instructions.

### Build SDK

Go to the folder `../sdk` and run `npm install`.

This is necessary since the demo application uses the local sdk package.

### Install dependencies

Run `npm install --install-links` to install the project dependencies.

Note that `--install-links` is required since the package `raygun4reactnative` should be copied over and not linked with a symbolic link, otherwise React-Native won't be able to access it.

### Setup Raygun Options

Configure the `apiKey` from the `RaygunClientOptions` in the `screens/Home.tsx` file.
Expand Down
Loading
Loading