Test workflow file if it checks out another repo to test this repo #26
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 for new Tutors | |
on: | |
push: | |
branches: ["development", "main"] | |
pull_request: | |
types: [opened, synchronize] | |
branches: | |
- development | |
- main | |
jobs: | |
app: | |
name: Build & Test App | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out my e2e tests | |
uses: actions/checkout@v3 | |
with: | |
repository: tutors-sdk/tutors-apps | |
path: ./cypress-tests | |
ref: test/add-cypress-tests | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
working-directory: ./ | |
- name: Create app env | |
run: cp .env.example .env | |
working-directory: ./ | |
- name: Build app | |
run: npm run build | |
working-directory: ./ | |
- name: Run preview & cypress tests | |
run: | | |
pwd # Print current directory for debugging | |
ls -R # List all files and directories for debugging | |
npm run preview & npx cypress run --record --key *** --browser chrome | |