Migrate to GitHub Actions from CircleCI #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##CICD Version: v0.0.1 | |
name: GitHub_CICD | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Save repository to cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/react-native-website | |
key: v1-repo-${{ github.sha }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile --no-progress --non-interactive --cache-folder ~/.cache/yarn | |
lint: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Restore Yarn cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
~/.cache/yarn | |
key: v1-yarn-${{ github.ref_name }} | |
- name: Run Lint | |
run: yarn ci:lint | |
working-directory: website | |
build: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Restore Yarn cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
~/.cache/yarn | |
key: v1-yarn-${{ github.ref_name }} | |
- name: Build | |
run: yarn build | |
working-directory: website | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" |