Skip to content

impl. mocked script #11

impl. mocked script

impl. mocked script #11

# name: Preview Android Build (Feature Branch)
# on:
# pull_request:
# branches: [dev]
# paths-ignore:
# - "**.md"
# - "docs/**"
# types: [opened, reopened]
# jobs:
# build:
# name: Build Android Preview
# if: startsWith(github.head_ref, 'feature/')
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: yarn
# - name: Setup EAS
# uses: expo/expo-github-action@v8
# with:
# eas-version: latest
# token: ${{ secrets.EAS_TOKEN }}
# - name: Install dependencies
# run: yarn install
# - name: Trigger EAS Android build (preview)
# id: eas_build
# run: eas build --platform android --profile preview --non-interactive
name: Sample PR Comment for Testing
on:
pull_request:
branches: [dev]
types: [opened, reopened, synchronize]
paths-ignore:
- "**.md"
- "docs/**"
jobs:
test:
name: Mocked Test Scripts
if: startsWith(github.head_ref, 'feature/')
runs-on: ubuntu-latest
steps:
- name: Mock Script 1
run: echo "Running mock test script 1"
- name: Mock Script 2
run: echo "Running mock test script 2"
- name: Add mock link as PR comment
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '🔗 [Sample Link for Test Build](https://example.com/mock-build)'
})