Skip to content

Commit

Permalink
chore: make actions names match their titles, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed Aug 8, 2024
1 parent 005b7a2 commit db11705
Show file tree
Hide file tree
Showing 40 changed files with 252 additions and 298 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test V8 on Android nightly
name: V8 Reanimated build check [Nightly]
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
on:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate plugin
name: Babel plugin static check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand Down Expand Up @@ -35,10 +35,7 @@ jobs:

- name: Install monorepo dependencies
run: yarn install --immutable
- name: Install Reanimated node dependencies
working-directory: packages/react-native-reanimated
run: yarn install
- name: Build package
- name: Build Reanimated
working-directory: packages/react-native-reanimated
run: yarn build

Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/build-monorepo-nightly.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/build-release-npm-package-rea3.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test docs build
name: Docs Reanimated build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Reanimated Docs
name: Docs Reanimated publish
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Android build
name: Example Android build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand Down Expand Up @@ -41,36 +41,28 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install dependencies in root
run: yarn install --immutable

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

- name: Restore Reanimated node_modules from cache
# TODO: Install deps only when cache failed (use id and outputs)
# TODO: Check if this optimization works with new yarn
# TODO: Check if we should cache `yarn's` cache instead
- name: Restore node_modules from cache
uses: actions/cache@v3
with:
path: packages/react-native-reanimated/node_modules
key: ${{ runner.os }}-android-node-modules-reanimated-${{ hashFiles('packages/react-native-reanimated/yarn.lock') }}
restore-keys: ${{ runner.os }}-android-node-modules-reanimated-

- name: Install Reanimated node_modules
working-directory: packages/react-native-reanimated
run: yarn install --immutable

path: .
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-node-modules-
- name: Restore app node_modules from cache
uses: actions/cache@v3
with:
path: ${{ matrix.working-directory }}/node_modules
key: ${{ runner.os }}-android-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }}
restore-keys: ${{ runner.os }}-android-node-modules-${{ matrix.working-directory }}-

- name: Install app node_modules
working-directory: ${{ matrix.working-directory }}
run: yarn install
key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }}
restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-
- name: Install monorepo node dependencies
run: yarn install --immutable

- name: Build app
working-directory: ${{ matrix.working-directory }}/android
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test iOS build
name: Example iOS build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand Down Expand Up @@ -45,29 +45,22 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install monorepo node dependencies
run: yarn install
- name: Restore Reanimated node_modules from cache
# Does this optimization even work with new yarn?
# Perhaps we should cache `yarn's` cache instead?
- name: Restore node_modules from cache
uses: actions/cache@v3
with:
path: packages/react-native-reanimated/node_modules
key: ${{ runner.os }}-node-modules-reanimated-${{ hashFiles('packages/react-native-reanimated/yarn.lock') }}
restore-keys: ${{ runner.os }}-node-modules-reanimated-

- name: Install Reanimated node dependencies
working-directory: packages/react-native-reanimated
run: yarn install

path: .
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-node-modules-
- name: Restore app node_modules from cache
uses: actions/cache@v3
with:
path: ${{ matrix.working-directory }}/node_modules
key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }}
restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-

- name: Install app node_modules
working-directory: ${{ matrix.working-directory }}
run: yarn install
- name: Install monorepo node dependencies
run: yarn install --immutable

- name: Restore Pods from cache
uses: actions/cache@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test macOS build
name: Example macOS build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand Down Expand Up @@ -41,32 +41,28 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install monorepo node dependencies
run: yarn install

- name: Restore Reanimated node_modules from cache
# Does this optimization even work with new yarn?
# Perhaps we should cache `yarn's` cache instead?
- name: Restore node_modules from cache
id: monorepo-cache
uses: actions/cache@v3
with:
path: packages/react-native-reanimated/node_modules
key: ${{ runner.os }}-macos-node-modules-reanimated-${{ hashFiles('packages/react-native-reanimated/yarn.lock') }}
restore-keys: ${{ runner.os }}-macos-node-modules-reanimated-

- name: Install Reanimated node_modules
working-directory: packages/react-native-reanimated
run: yarn install

path: .
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-node-modules-
- name: Restore app node_modules from cache
id: app-cache
uses: actions/cache@v3
with:
path: ${{ env.WORKING_DIRECTORY }}/node_modules
key: ${{ runner.os }}-macos-node-modules-${{ env.WORKING_DIRECTORY }}-${{ hashFiles(format('{0}/yarn.lock', env.WORKING_DIRECTORY)) }}
restore-keys: ${{ runner.os }}-macos-node-modules-${{ env.WORKING_DIRECTORY }}-

- name: Install app node_modules
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn install
path: ${{ ENV.WORKING_DIRECTORY }}/node_modules
key: ${{ runner.os }}-node-modules-${{ ENV.WORKING_DIRECTORY }}-${{ hashFiles(format('{0}/yarn.lock', ENV.WORKING_DIRECTORY)) }}
restore-keys: ${{ runner.os }}-node-modules-${{ ENV.WORKING_DIRECTORY }}-
- name: Install monorepo node dependencies
if: steps.monorepo-cache.outputs.cache-hit != 'true' || steps.app-cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Restore Pods from cache
id: pods-cache
uses: actions/cache@v3
with:
path: |
Expand All @@ -76,6 +72,7 @@ jobs:
key: ${{ runner.os }}-macos-pods-${{ env.WORKING_DIRECTORY }}-${{ hashFiles(format('{0}/macos/Podfile.lock', env.WORKING_DIRECTORY)) }}

- name: Install Pods
if: steps.pods-cache.outputs.cache-hit != 'true'
working-directory: ${{ env.WORKING_DIRECTORY }}/macos
run: bundle install && bundle exec pod install

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build/test NextExample
name: Example Next build check and tests
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand All @@ -22,17 +22,10 @@ jobs:
uses: actions/checkout@v4
- name: Install monorepo node dependencies
run: yarn install --immutable
- name: Install Reanimated node dependencies
working-directory: packages/react-native-reanimated
run: yarn install --immutable
- name: Build Reanimated package
working-directory: packages/react-native-reanimated
run: yarn build

- name: Install NextExample node_modules
working-directory: apps/next-example
run: yarn install --immutable

- name: Compile production build
working-directory: apps/next-example
run: yarn build:next
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test tvOS build
name: Example tvOS build check
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
uses: actions/checkout@v4

- name: Install monorepo node dependencies
run: yarn install
run: yarn install --immutable

- name: Restore Reanimated node_modules from cache
uses: actions/cache@v3
Expand All @@ -51,7 +51,7 @@ jobs:

- name: Install Reanimated node_modules
working-directory: packages/react-native-reanimated
run: yarn install
run: yarn install --immutable

- name: Restore app node_modules from cache
uses: actions/cache@v3
Expand All @@ -62,7 +62,7 @@ jobs:

- name: Install app node_modules
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn install
run: yarn install --immutable

- name: Restore Pods from cache
uses: actions/cache@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test TypeScript and Lint in examples
name: Example Typescript check and lint
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
Expand All @@ -16,12 +16,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
working-directory:
[
apps/paper-example,
working-directory: [
apps/common-app,
apps/fabric-example,
apps/web-example,
apps/macos-example,
# We don't check for Next.
# apps/next-example,
apps/paper-example,
apps/tvos-example,
apps/web-example,
]
concurrency:
group: typescript-${{ matrix.working-directory }}-${{ github.ref }}
Expand All @@ -37,16 +40,10 @@ jobs:
run: .github/workflows/helper/clear-annotations.sh

- name: Install monorepo node dependencies
run: yarn install
- name: Install Reanimated node dependencies
working-directory: packages/react-native-reanimated
run: yarn install
run: yarn install --immutable
- name: Build Reanimated package
working-directory: packages/react-native-reanimated
run: yarn build
- name: Install ${{ matrix.working-directory }} app node dependencies
working-directory: ${{ matrix.working-directory }}
run: yarn

- name: Check types
working-directory: ${{ matrix.working-directory }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Expo dev-client nightly build
name: Expo DevClient build check [Nightly]
env:
YARN_ENABLE_HARDENED_MODE: 0
SCRIPT_PATH: ${{github.workspace}}/reanimated_repo/.github/workflows/helper/configureDevClient.js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Check for stale issues
name: Github "Close when stale" [Nightly]
on:
schedule:
- cron: "37 21 * * *" # at 21:37 every day
- cron: '37 21 * * *' # at 21:37 every day
issues:
types: [edited]
issue_comment:
Expand All @@ -16,12 +16,12 @@ jobs:
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: "software-mansion-labs/swmansion-bot"
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- uses: actions/cache@v3
with:
path: "**/node_modules"
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install Actions
Expand All @@ -30,5 +30,5 @@ jobs:
- name: Close when stale
uses: ./close-when-stale
with:
close-when-stale-label: "Close when stale"
close-when-stale-label: 'Close when stale'
days-to-close: 14
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check for platforms
name: Github issue platforms check
on:
issues:
types: [opened, edited]
Expand All @@ -14,12 +14,12 @@ jobs:
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: "software-mansion-labs/swmansion-bot"
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- uses: actions/cache@v3
with:
path: "**/node_modules"
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install Actions
Expand Down
Loading

0 comments on commit db11705

Please sign in to comment.