Skip to content
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
26 changes: 13 additions & 13 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# .github/workflows/pr-checks.yml
#
---
name: pr-checks
name: PR Checks

on:
pull_request:
Expand All @@ -24,14 +24,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Tools
- name: Install tools
run: |
sudo apt update && sudo apt install just
just --version
just tools

rust:
name: rust-quickstart
name: Rust Quickstart
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest"]
Expand All @@ -48,12 +48,12 @@ jobs:
override: true
components: rustfmt, clippy

- name: Clippy
- name: Run clippy
run: |
cd rust-tui
cargo clippy

- name: Build
- name: Build project
run: |
cd rust-tui
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
Expand All @@ -62,39 +62,39 @@ jobs:
cargo build

js-web:
name: javascript-web lint
name: JavaScript Web Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install Dependencies
- name: Install dependencies
working-directory: javascript-web
run: npm ci

- name: Run linter
- name: Run linting
working-directory: javascript-web
run: npm run lint

js-node:
name: javascript-tui lint
name: JavaScript TUI Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install Dependencies
- name: Install dependencies
working-directory: javascript-tui
run: npm ci

- name: Run linter and tests
- name: Run linting and tests
working-directory: javascript-tui
run: npm run test
123 changes: 123 additions & 0 deletions .github/workflows/react-native-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
name: React Native CI
Comment thread
teodorciuraru marked this conversation as resolved.

on:
push:
branches: [ main ]
paths:
- 'react-native/**'
pull_request:
branches: [ main ]
paths:
- 'react-native/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: react-native/yarn.lock

- name: Install dependencies
working-directory: react-native
run: yarn install --frozen-lockfile

- name: Run linting
working-directory: react-native
run: yarn lint

build-android:
runs-on: ubuntu-latest
needs: lint
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: react-native/yarn.lock

- name: Install dependencies
working-directory: react-native
run: yarn install --frozen-lockfile

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
react-native/android/.gradle
key: gradle-${{ runner.os }}-${{ hashFiles('react-native/android/gradle/wrapper/gradle-wrapper.properties', 'react-native/android/**/*.gradle*') }}
restore-keys: |
gradle-${{ runner.os }}-

- name: Build Android
working-directory: react-native
run: yarn build:android

build-ios:
runs-on: macos-latest
needs: lint
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: react-native/yarn.lock

- name: Install dependencies
working-directory: react-native
run: yarn install --frozen-lockfile

- name: Cache CocoaPods dependencies
uses: actions/cache@v4
with:
path: |
react-native/ios/Pods
~/Library/Caches/CocoaPods
~/.cocoapods
key: cocoapods-${{ runner.os }}-${{ hashFiles('react-native/ios/Podfile.lock') }}
restore-keys: |
cocoapods-${{ runner.os }}-

- name: Install Ruby gems
working-directory: react-native
run: bundle install

- name: Install CocoaPods
working-directory: react-native/ios
run: bundle exec pod install --repo-update

- name: Build iOS
working-directory: react-native
run: yarn build:ios
132 changes: 132 additions & 0 deletions .github/workflows/react-native-expo-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
name: React Native Expo CI
Comment thread
teodorciuraru marked this conversation as resolved.

on:
push:
branches: [ main ]
paths:
- 'react-native-expo/**'
pull_request:
branches: [ main ]
paths:
- 'react-native-expo/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: react-native-expo/yarn.lock

- name: Install dependencies
working-directory: react-native-expo
run: yarn install

- name: Run linting
working-directory: react-native-expo
run: yarn lint

build-android:
name: Build Android
runs-on: ubuntu-latest
needs: lint
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: react-native-expo/yarn.lock

- name: Install dependencies
working-directory: react-native-expo
run: yarn install

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
react-native-expo/android/.gradle
key: gradle-expo-${{ runner.os }}-${{ hashFiles('react-native-expo/android/gradle/wrapper/gradle-wrapper.properties', 'react-native-expo/android/**/*.gradle*') }}
restore-keys: |
gradle-expo-${{ runner.os }}-

- name: Prebuild Android project
working-directory: react-native-expo
run: npx expo prebuild --platform android

- name: Build Android
working-directory: react-native-expo
run: yarn build:android

build-ios:
name: Build iOS
runs-on: macos-latest
needs: lint
timeout-minutes: 30

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: react-native-expo/yarn.lock

- name: Install dependencies
working-directory: react-native-expo
run: yarn install

- name: Cache CocoaPods dependencies
uses: actions/cache@v4
with:
path: |
~/Library/Caches/CocoaPods
~/.cocoapods
Comment thread
teodorciuraru marked this conversation as resolved.
key: cocoapods-expo-${{ runner.os }}-${{ hashFiles('react-native-expo/ios/Podfile.lock') }}
restore-keys: |
cocoapods-expo-${{ runner.os }}-

- name: Prebuild iOS project
working-directory: react-native-expo
run: npx expo prebuild --platform ios

- name: Set Xcode version
run: sudo xcode-select -s /Applications/Xcode_16.2.app

- name: Install CocoaPods
working-directory: react-native-expo/ios
run: pod install --repo-update

- name: Build iOS
working-directory: react-native-expo
run: yarn build:ios
1 change: 1 addition & 0 deletions react-native-expo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ web-build/
expo-env.d.ts
android
ios
!ios/Podfile.lock

# Native
*.orig.*
Expand Down
Loading
Loading