Test Pull Request #619
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
name: Test Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Branch name | |
run: echo running on branch ${GITHUB_REF##*/} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
id: cypress-cache | |
with: | |
path: | | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
node_modules | |
~/.cache/Cypress | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Get branch name | |
run: | | |
echo "### CURRENT BRANCH NAME: ${{ github.ref_name }}." | |
- name: Build | |
env: | |
NODE_OPTIONS: "--openssl-legacy-provider" | |
run: | | |
yarn --prefer-offline | |
./node_modules/.bin/ember build --output-path="test_build" --environment=development | |
- name: Upload Test Build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test_build | |
path: test_build/ | |
ember_test: | |
name: Ember Testing | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
id: cypress-cache | |
with: | |
path: | | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
node_modules | |
~/.cache/Cypress | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Download Test Build artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: test_build | |
path: test_build/ | |
- name: Ember Testing | |
env: | |
COVERAGE: true | |
run: | | |
yarn run ember test --path=test_build | |
cypress_test: | |
name: Cypress Testing | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
fail-fast: false | |
# matrix: | |
# containers: [1, 2, 3, 4, 5] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
id: cypress-cache | |
with: | |
path: | | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
node_modules | |
~/.cache/Cypress | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
- name: Download Test Build artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: test_build | |
path: test_build/ | |
- name: Cypress Testing | |
uses: cypress-io/github-action@v5 | |
with: | |
config-file: cypress.config.ts | |
install: false | |
config: defaultCommandTimeout=15000 | |
start: yarn start --path=test_build | |
wait-on: 'http://localhost:4200' | |
wait-on-timeout: 600 | |
quiet: false | |
# record: true | |
# parallel: true | |
spec: | | |
cypress/e2e/client_admin/doi.test.ts | |
cypress/e2e/client_admin/info.test.ts | |
cypress/e2e/client_admin/prefixes.test.ts | |
cypress/e2e/client_admin/settings.test.ts | |
cypress/e2e/consortium_admin/contact.test.ts | |
cypress/e2e/consortium_admin/info.test.ts | |
cypress/e2e/consortium_admin/settings.test.ts | |
cypress/e2e/organization_admin/contact.test.ts | |
cypress/e2e/organization_admin/doi.test.ts | |
cypress/e2e/organization_admin/info.test.ts | |
cypress/e2e/organization_admin/prefixes.test.ts | |
cypress/e2e/organization_admin/repositories.test.ts | |
cypress/e2e/organization_admin/settings.test.ts | |
cypress/e2e/staff_admin/contact.test.ts | |
cypress/e2e/staff_admin/info.test.ts | |
cypress/e2e/staff_admin/settings.test.ts | |
cypress/e2e/ui/consent.test.ts | |
cypress/e2e/ui/login.test.ts | |
cypress/e2e/anonymous/admin.test.ts | |
cypress/e2e/anonymous/anonymous.test.ts | |
cypress/e2e/anonymous/doi.test.ts | |
cypress/e2e/anonymous/provider.test.ts | |
cypress/e2e/anonymous/repository.test.ts | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CLIENT_ADMIN_USERNAME: ${{ secrets.CLIENT_ADMIN_USERNAME }} | |
CLIENT_ADMIN_PASSWORD: ${{ secrets.CLIENT_ADMIN_PASSWORD }} | |
CONSORTIUM_ADMIN_USERNAME: ${{ secrets.CONSORTIUM_ADMIN_USERNAME }} | |
CONSORTIUM_ADMIN_PASSWORD: ${{ secrets.CONSORTIUM_ADMIN_PASSWORD }} | |
ORGANIZATION_ADMIN_USERNAME: ${{ secrets.ORGANIZATION_ADMIN_USERNAME }} | |
ORGANIZATION_ADMIN_PASSWORD: ${{ secrets.ORGANIZATION_ADMIN_PASSWORD }} | |
STAFF_ADMIN_USERNAME: ${{ secrets.STAFF_ADMIN_USERNAME }} | |
STAFF_ADMIN_PASSWORD: ${{ secrets.STAFF_ADMIN_PASSWORD }} |