diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24146fb..8ec3b0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,13 @@ jobs: docker build -t react-native-community/react-native . docker run --rm --name rn-env react-native-community/react-native /bin/sh -c "npx envinfo" - name: Checkout React Native - run: git clone https://github.com/facebook/react-native.git + run: | + git clone \ + --branch main \ + --single-branch \ + --depth 1 \ + --no-tags \ + https://github.com/facebook/react-native.git - name: Build React Native run: | docker run --rm --ulimit nofile=10240 -v "$(pwd)/scripts/":/scripts -v "$(pwd)/react-native/":/react-native -w /react-native react-native-community/react-native /bin/sh -c "/scripts/test-react-native-setup.sh" @@ -32,7 +38,13 @@ jobs: docker build -t react-native-community/react-native . docker run --rm --name rn-env react-native-community/react-native /bin/sh -c "npx envinfo" - name: Checkout React Native - run: git clone https://github.com/facebook/react-native.git + run: | + git clone \ + --branch main \ + --single-branch \ + --depth 1 \ + --no-tags \ + https://github.com/facebook/react-native.git - name: Create reports directory run: mkdir -p $(pwd)/fantom-reports - name: Run Fantom tests