Skip to content

Commit

Permalink
chore(ci): Remove caching from CI workflows (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactor authored Nov 12, 2024
1 parent 530994c commit 5ca9aec
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 61 deletions.
30 changes: 0 additions & 30 deletions .github/actions/install-dependencies/action.yml

This file was deleted.

8 changes: 7 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ jobs:
- uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install-dependencies
shell: bash
run: bun install

- name: Install example dependencies
shell: bash
run: bun install
working-directory: example

- uses: actions/setup-java@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ jobs:
- uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install-dependencies
shell: bash
run: bun install

- name: Install example dependencies
shell: bash
run: bun install
working-directory: example

- name: Cache Pods
id: cache-pods
Expand Down
38 changes: 9 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,34 @@ on:
pull_request:
branches:
- master
- next
push:
branches:
- master
- next

concurrency:
group: ${{ github.ref }}-js
cancel-in-progress: true

jobs:
install-dependencies:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2

- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install-dependencies

verify-package-source:
name: Lint package
runs-on: ubuntu-latest
needs: install-dependencies

steps:
- name: Set up Bun
uses: oven-sh/setup-bun@v2

- name: Checkout repository
uses: actions/checkout@v4

- name: Pull dependencies
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}

- name: Pull example node modules
id: cache-example-npm
uses: actions/cache@v4
env:
cache-name: cached-example-npm-deps
with:
path: example/node_modules
key: ${{ hashFiles('./example/bun.lockb') }}-${{ hashFiles('./bun.lockb') }}
- name: Install dependencies
shell: bash
run: bun install

- name: Install example dependencies
shell: bash
run: bun install
working-directory: example

- name: Lint files
run: bun run lint
Expand Down

0 comments on commit 5ca9aec

Please sign in to comment.