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

build: fix workflow cache names #40

Merged
merged 3 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 9 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ jobs:
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
node-version: lts/*
- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
example/node_modules
key: node-modules
- run: |
corepack enable
cd example && yarn install
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'yarn'
- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
example/node_modules
key: node-modules
- run: yarn
- run: yarn lint
- run: yarn typecheck
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'

node-version: lts/*
- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
example/node_modules
key: node-modules
- name: Import GPG key
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'yarn'
- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
example/node_modules
key: node-modules
- run: yarn
- run: yarn test

Expand All @@ -27,7 +34,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'yarn'
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
Expand All @@ -44,25 +50,25 @@ jobs:
DEVELOPER_DIR: /Applications/Xcode_15.4.app
run: xcodebuild -version
- name: Cache Pods
id: cache-test-ios-pods
id: pods
uses: actions/cache@v4
with:
path: |
example/ios/Pods
key: cache-test-ios-pods
key: pods
- name: Cache node_modules
id: cache-test-node-modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
example/node_modules
key: cache-test-node-modules
key: node-modules
- name: Cache Xcode DerivedData
uses: irgaly/[email protected]
with:
key: cache-test-xcode-deriveddata-${{ github.workflow }}-${{ github.sha }}
restore-keys: cache-test-xcode-deriveddata-${{ github.workflow }}-
key: xcode-deriveddata
restore-keys: xcode-deriveddata
- run: corepack enable
- run: yarn
- run: cd example; bundle; cd -
Expand All @@ -86,15 +92,15 @@ jobs:
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: lts/*
- name: Cache node_modules
id: cache-test-node-modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
example/node_modules
key: cache-test-node-modules
key: node-modules
- name: Cache Gradle
id: cache_gradle
uses: actions/cache@v4
Expand Down
Loading