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

Add cache #7

Merged
merged 32 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e216dfa
cache node
radeva Feb 28, 2024
ec6cd4f
cache ruby gems
radeva Feb 28, 2024
339b231
get ruby version
radeva Feb 28, 2024
295742b
set ruby version
radeva Feb 28, 2024
24e4570
ignore all pod warnings
radeva Feb 28, 2024
c945cfa
cache ruby dependencies
radeva Feb 28, 2024
80eb38d
run the whole workflow
radeva Feb 28, 2024
2200b25
cache node_modules & pods
radeva Mar 5, 2024
ed022a7
add condition for cache
radeva Mar 5, 2024
0283cc8
remove package-lock
radeva Mar 5, 2024
1039859
update yarn.lock
radeva Mar 5, 2024
b4887a0
wip
radeva Mar 6, 2024
428f399
build ios
radeva Mar 6, 2024
a2c002b
update podfile.lock
radeva Mar 6, 2024
6e37b36
update cache action
radeva Mar 6, 2024
717f3be
add CI env
radeva Mar 6, 2024
a6dc247
set NO_FLIPPER to 1
radeva Mar 6, 2024
eb4b01e
follow https://fbflipper.com/docs/getting-started/troubleshooting/rea…
radeva Mar 7, 2024
de4c8be
disable flipper on CI
radeva Mar 7, 2024
70b98ca
remove `if` on pod and node_modules install
radeva Mar 7, 2024
a67824b
leave one env var
radeva Mar 8, 2024
9a81fcf
remove trigger on branch change
radeva Mar 11, 2024
27867aa
get back android builds
radeva Mar 11, 2024
c1b1024
do not inhibit warnings
radeva Mar 11, 2024
1c09f48
add new line
radeva Mar 11, 2024
d8b7cbe
use ruby and node versions from files / remove NO_FLIPPER set
radeva Mar 11, 2024
dfb9bf9
get no-flipper back
radeva Mar 11, 2024
22a9ed4
use NO_FLIPPER env var on cocoapods install only / disable node_modul…
radeva Mar 11, 2024
9e2e677
remove caching of node modules
radeva Mar 12, 2024
ba4990a
remove explicit caching of pods
radeva Mar 12, 2024
eabcdbf
get back pods cache
radeva Mar 12, 2024
6249b03
add new line
radeva Mar 12, 2024
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: 20 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install bundle
run: |
set -euxo pipefail
bundle install
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install node modules
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Install node_modules
shell: bash
run: |
set -euxo pipefail
yarn install --immutable
yarn install --frozen-lockfile

- name: Run eslint
run: |
Expand All @@ -35,8 +40,17 @@ jobs:
set -euxo pipefail
yarn test

- name: Cache Pods
uses: actions/cache@v4
id: pods-cache
with:
path: ./ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}

- name: Install pods
working-directory: ios
env:
NO_FLIPPER: 1
run: |
set -euxo pipefail
bundle exec pod install
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3
radeva marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 0 additions & 2 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@ target 'FlyCIReactNativeApp' do
)
end
end

pod 'libevent', :inhibit_warnings => true
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,6 @@ SPEC CHECKSUMS:
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: a716eea57d0d3430219c0a5a233e1e93ee931eb7

PODFILE CHECKSUM: 5b3118681ff4eb45bc26655b3108c5b57765643a
PODFILE CHECKSUM: f068156dcdb22e74022a28f46c6e3d2374a071b2

COCOAPODS: 1.14.3
Loading
Loading