adjust v4 #7
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
name: CI/CD | |
on: | |
push: | |
branches: | |
- step-9-ci-cd | |
jobs: | |
CI: | |
name: Continuous Integration | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: npm install --legacy-peer-deps | |
- name: Install Expo CLI | |
run: npm install -g expo-cli | |
- name: Install Expo Font | |
run: npx expo install expo-font | |
- name: Install Google Font Karla | |
run: npm install @expo-google-fonts/karla | |
- name: Run Tests | |
run: npm test | |
CD: | |
name: Continuous Delivery | |
runs-on: ubuntu-latest | |
needs: CI | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Setup EAS | |
uses: expo/expo-github-action@v8 | |
with: | |
eas-version: latest | |
packager: npm | |
token: ${{ secrets.EAS_EXPO_TOKEN_TEST }} | |
- name: Build | |
run: eas build --platform android --profile preview --non-interactive --no-wait | |