Skip to content

Test workflow file if it checks out another repo to test this repo #25

Test workflow file if it checks out another repo to test this repo

Test workflow file if it checks out another repo to test this repo #25

Workflow file for this run

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: npm run preview & npx cypress run
working-directory: ./