Merge pull request #15 from status-im/ra.add-ci-build

ci: add build step
This commit is contained in:
Rickard Andersson 2023-08-07 13:41:13 +03:00 committed by GitHub
commit dd740d28cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1705 additions and 3302 deletions

View File

@ -22,6 +22,27 @@ jobs:
if: steps.yarn-cache.outputs.cache-hit != 'true' if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn run: yarn
build:
runs-on: ubuntu-latest
needs: cache-dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Restore yarn dependencies
uses: actions/cache@v2
id: yarn-cache
with:
path: |
~/.cache/Cypress
node_modules
key: ${{ runner.os }}-yarn-v3-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-v3
- name: Build
run: yarn build
interaction-and-and-accessibility: interaction-and-and-accessibility:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: cache-dependencies needs: cache-dependencies

View File

@ -1 +0,0 @@
name: 'UI tests'

View File

@ -18,14 +18,15 @@
}, },
"dependencies": { "dependencies": {
"@status-im/components": "^0.2.6", "@status-im/components": "^0.2.6",
"@status-im/react": "^0.1.1",
"@tamagui/config": "1.36.4", "@tamagui/config": "1.36.4",
"@tamagui/react-17-patch": "1.36.4", "@tamagui/react-17-patch": "1.36.4",
"@tamagui/vite-plugin": "1.36.4", "@tamagui/vite-plugin": "1.36.4",
"@types/react": "18", "@types/react": "18",
"@types/react-dom": "18", "@types/react-dom": "18",
"expo-modules-core": "^1.5.9",
"react": "18", "react": "18",
"react-dom": "18", "react-dom": "18",
"react-native": "^0.72.3",
"react-native-svg": "^13.10.0", "react-native-svg": "^13.10.0",
"tamagui": "1.36.4" "tamagui": "1.36.4"
}, },

View File

@ -1,6 +1,9 @@
import { config } from '@tamagui/config' import { config } from '@tamagui/config'
import { Text, View } from 'react-native'
import { createTamagui } from 'tamagui' // or '@tamagui/core' import { createTamagui, setupReactNative } from '@tamagui/core'
setupReactNative({ Text, View })
const appConfig = createTamagui(config) const appConfig = createTamagui(config)
export type AppConfig = typeof appConfig export type AppConfig = typeof appConfig

View File

@ -1,6 +1,8 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
const extensions = ['.web.js', '.web.ts', '.web.tsx', '.js', '.jsx', '.json', '.ts', '.tsx', '.mjs']
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
define: { define: {
@ -9,23 +11,14 @@ export default defineConfig({
'process.env.TAMAGUI_TARGET': JSON.stringify('web'), 'process.env.TAMAGUI_TARGET': JSON.stringify('web'),
}, },
resolve: { resolve: {
extensions,
alias: { alias: {
'react-native': 'react-native-web', 'react-native': 'react-native-web',
}, },
}, },
optimizeDeps: { optimizeDeps: {
esbuildOptions: { esbuildOptions: {
resolveExtensions: [ resolveExtensions: extensions,
'.web.js',
'.web.ts',
'.web.tsx',
'.js',
'.jsx',
'.json',
'.ts',
'.tsx',
'.mjs',
],
loader: { loader: {
'.js': 'jsx', '.js': 'jsx',
}, },

4962
yarn.lock

File diff suppressed because it is too large Load Diff