improve: donation and campus filters #272
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
on: | |
pull_request: | |
branches: [main] | |
name: Run Tests | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: ~/ChumsApp | |
submodules: 'true' | |
- name: Checkout Tests | |
uses: actions/checkout@v2 | |
with: | |
repository: LiveChurchSolutions/ChumsTests | |
path: ~/ChumsTests | |
submodules: 'true' | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install Dependencies | |
working-directory: ~/ChumsApp | |
run: npm ci | |
- name: ChumsApp - Copy .env | |
working-directory: ~/ChumsApp | |
run: cp dotenv.sample.txt .env | |
- name: Cypress run with env | |
uses: cypress-io/github-action@v2 | |
with: | |
working-directory: ~/ChumsTests | |
start: npm start | |
wait-on: 'http://localhost:3101' | |
spec: | | |
cypress/integration/!(Donations).spec.ts | |
env: | |
CYPRESS_ATTENDANCE_API: 'https://attendanceapi.staging.churchapps.org' | |
CYPRESS_GIVING_API: 'https://givingapi.staging.churchapps.org' | |
CYPRESS_MEMBERSHIP_API: 'https://membershipapi.staging.churchapps.org' | |
CYPRESS_CHURCH_WEB_APPS_URL: 'https://staging.churchapps.org' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |