Skip to content

Commit 541074e

Browse files
committed
feat: add image snap test
Signed-off-by: tony chen <tony.zq.chen@gmail.com>
1 parent bd1e685 commit 541074e

File tree

43 files changed

+2935
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2935
-359
lines changed

.github/actions/setup/action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ runs:
55
using: composite
66
steps:
77
- name: Setup Node.js
8-
uses: actions/setup-node@v3
8+
uses: actions/setup-node@v4
99
with:
10-
node-version: 16.x
10+
node-version: lts/*
1111

1212
- name: Cache dependencies
1313
id: yarn-cache
1414
uses: actions/cache@v3
1515
with:
1616
path: |
1717
**/node_modules
18-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
18+
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/yarn.lock') }}
1919
restore-keys: |
20-
${{ runner.os }}-yarn-
20+
${{ runner.os }}-yarn-v1-
2121
2222
- name: Install dependencies
2323
if: steps.yarn-cache.outputs.cache-hit != 'true'
2424
run: |
2525
yarn install --cwd example --frozen-lockfile
26-
yarn install --frozen-lockfile
26+
yarn install --frozen-lockfile --ignore-engines
2727
shell: bash

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44

55
jobs:
66
lint:
7-
runs-on: ubuntu-latest
7+
runs-on: macos-latest
88
steps:
99
- name: Checkout
1010
uses: actions/checkout@v3
@@ -19,7 +19,7 @@ jobs:
1919
run: yarn typescript
2020

2121
test:
22-
runs-on: ubuntu-latest
22+
runs-on: macos-latest
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v3
@@ -31,7 +31,7 @@ jobs:
3131
run: yarn test --maxWorkers=2 --coverage
3232

3333
build:
34-
runs-on: ubuntu-latest
34+
runs-on: macos-latest
3535
steps:
3636
- name: Checkout
3737
uses: actions/checkout@v3

.github/workflows/publish.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ env:
1313
jobs:
1414
publish:
1515
name: publish
16-
runs-on: ubuntu-latest
16+
runs-on: macos-latest
1717
strategy:
1818
fail-fast: false
19-
matrix:
20-
node-version: [16.x]
2119

2220
steps:
2321
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: lts/*
2425
- name : GITHUB CONTEXT
2526
env:
2627
GITHUB_CONTEXT: ${{ toJson(github) }}
@@ -31,11 +32,6 @@ jobs:
3132
echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV
3233
- name: Show commit message
3334
run : echo "$commitmsg"
34-
- name: Setup Node ${{ matrix.node_version }}
35-
uses: actions/setup-node@v1
36-
with:
37-
node-version: 16
38-
registry-url: 'https://registry.npmjs.org'
3935
- name: npm install, build
4036
run: |
4137
yarn

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,6 @@ lib/
7777

7878
# Docusaurus (when switching from docs branches to code branches)
7979
.docusaurus/
80+
81+
# jest
82+
coverage/

example/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"@expo/webpack-config": "~19.0.1",
1313
"@shopify/react-native-skia": "0.1.221",
1414
"echarts": "^5.5.0",
15-
"expo": "^50.0.0",
15+
"expo": "~50.0.7",
1616
"react": "18.2.0",
1717
"react-dom": "18.2.0",
18-
"react-native": "0.73.2",
18+
"react-native": "0.73.4",
1919
"react-native-gesture-handler": "~2.14.0",
2020
"react-native-svg": "14.1.0",
2121
"react-native-web": "~0.19.6",

0 commit comments

Comments
 (0)