Skip to content

Commit

Permalink
fix: Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jul 31, 2023
1 parent d72de0e commit 79e97b8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ jobs:
run: "set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace BlurhashExample.xcworkspace \
-scheme BlurhashExample \
-workspace example.xcworkspace \
-scheme example \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/lint-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,21 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-yarn-
- name: Install dependencies via yarn
# Can't use npm because of the softlink to the library (../)
run: yarn install --frozen-lockfile
working-directory: ${{env.working-directory}}
- name: Run ESLint on all *.js*/*.ts* files
run: npx eslint --ext .js,.jsx,.ts,.tsx .
run: yarn eslint --ext .js,.jsx,.ts,.tsx .
working-directory: ${{env.working-directory}}
24 changes: 12 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-yarn-
- name: Install dependencies via npm
run: npm ci
- name: Install dependencies via yarn
run: yarn install --frozen-lockfile
working-directory: ${{env.working-directory}}
- name: Run ESLint on all *.js*/*.ts* files
run: npx eslint --ext .js,.jsx,.ts,.tsx .
run: yarn eslint --ext .js,.jsx,.ts,.tsx .
working-directory: ${{env.working-directory}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-native-blurhash",
"title": "React Native Blurhash",
"version": "1.1.10",
"description": "🖼 BlurHash is a compact representation of a placeholder for an image. This is a Native UI Module for React Native to asynchronously wrap the Blurhash implementations and make them usable in React Native. Also supports encoding!",
"description": "🖼 Blurhash is a compact representation of a placeholder for an image. This is a Native UI Module for React Native to asynchronously wrap the Blurhash implementations and make them usable in React Native. Also supports encoding!",
"main": "lib/commonjs/index.js",
"types": "lib/typescript/index.d.ts",
"react-native": "src/index.tsx",
Expand Down

0 comments on commit 79e97b8

Please sign in to comment.