Skip to content

chore: Update rollup to 4.x #5202

chore: Update rollup to 4.x

chore: Update rollup to 4.x #5202

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
setup:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-14]
timeout-minutes: 30
outputs:
plugins: ${{ steps.packages.outputs.paths }}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@ce177499ccf9fd2aded3b0426c97e5434c2e8a73
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Get Latest
uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- id: files
uses: tj-actions/changed-files@v37
with:
json: true
write_output_files: true
- id: catjson
run: |
echo "FILES_JSON=$(cat .github/outputs/all_changed_files.json)" >> $GITHUB_OUTPUT
- id: packages
uses: ./.github/actions/changed-packages
with:
files: ${{ steps.catjson.outputs.FILES_JSON }}
lint-scripts:
runs-on: macos-14
timeout-minutes: 30
needs:
- setup
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run lint
lint:
runs-on: macos-14
timeout-minutes: 30
needs:
- setup
- lint-scripts
if: needs.setup.outputs.plugins != '[]'
strategy:
matrix:
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run lint
working-directory: ${{ matrix.plugin }}
verify-ios:
runs-on: macos-14
if: needs.setup.outputs.plugins != '[]'
timeout-minutes: 30
needs:
- setup
- lint
- lint-scripts
strategy:
matrix:
xcode:
- /Applications/Xcode_15.0.app
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
steps:
- run: sudo xcode-select --switch ${{ matrix.xcode }}
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run verify:ios
working-directory: ${{ matrix.plugin }}
verify-android:
runs-on: ubuntu-latest
if: needs.setup.outputs.plugins != '[]'
timeout-minutes: 30
needs:
- setup
- lint
- lint-scripts
strategy:
matrix:
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run set-settings-gradle-for-monorepo
- run: npm run verify:android
working-directory: ${{ matrix.plugin }}
verify-web:
runs-on: ubuntu-latest
if: needs.setup.outputs.plugins != '[]'
timeout-minutes: 30
needs:
- setup
- lint
- lint-scripts
strategy:
matrix:
plugin: ${{ fromJson(needs.setup.outputs.plugins) }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v3
- name: Restore Dependency Cache
id: cache-modules
uses: actions/cache@v3
with:
path: |
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- run: npm install
- run: npm run verify:web
working-directory: ${{ matrix.plugin }}
# deploy:
# runs-on: macos-latest
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# timeout-minutes: 30
# needs:
# - setup
# - lint
# - verify-ios
# - verify-android
# - verify-web
# steps:
# - uses: actions/setup-node@v1
# with:
# node-version: 14.x
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Restore Dependency Cache
# id: cache-modules
# uses: actions/cache@v2
# with:
# path: |
# node_modules
# */node_modules
# key: dependency-cache-${{ hashFiles('package.json', '*/package.json') }}
# - run: npm install
# - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
# - run: npx lerna publish from-git --yes