Skip to content

Commit

Permalink
feat: add image snap test
Browse files Browse the repository at this point in the history
Signed-off-by: tony chen <[email protected]>
  • Loading branch information
zhiqingchen committed Feb 20, 2024
1 parent bd1e685 commit 541074e
Show file tree
Hide file tree
Showing 43 changed files with 2,935 additions and 359 deletions.
10 changes: 5 additions & 5 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: lts/*

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-yarn-v1-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn install --cwd example --frozen-lockfile
yarn install --frozen-lockfile
yarn install --frozen-lockfile --ignore-engines
shell: bash
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -19,7 +19,7 @@ jobs:
run: yarn typescript

test:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -31,7 +31,7 @@ jobs:
run: yarn test --maxWorkers=2 --coverage

build:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ env:
jobs:
publish:
name: publish
runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name : GITHUB CONTEXT
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
Expand All @@ -31,11 +32,6 @@ jobs:
echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV
- name: Show commit message
run : echo "$commitmsg"
- name: Setup Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: npm install, build
run: |
yarn
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ lib/

# Docusaurus (when switching from docs branches to code branches)
.docusaurus/

# jest
coverage/
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"@expo/webpack-config": "~19.0.1",
"@shopify/react-native-skia": "0.1.221",
"echarts": "^5.5.0",
"expo": "^50.0.0",
"expo": "~50.0.7",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.73.2",
"react-native": "0.73.4",
"react-native-gesture-handler": "~2.14.0",
"react-native-svg": "14.1.0",
"react-native-web": "~0.19.6",
Expand Down
Loading

0 comments on commit 541074e

Please sign in to comment.