|
@@ -175,11 +175,6 @@ jobs:
|
|
|
if: ${{ !inputs.skip-cypress }}
|
|
if: ${{ !inputs.skip-cypress }}
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
- container:
|
|
|
|
|
- image: cypress/base:16.13.0
|
|
|
|
|
- # solve permissions issue
|
|
|
|
|
- # see: https://github.com/cypress-io/github-action/issues/446#issuecomment-987015822
|
|
|
|
|
- options: --user 1001
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: false
|
|
fail-fast: false
|
|
@@ -202,22 +197,22 @@ jobs:
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- - name: Get yarn cache dir
|
|
|
|
|
- id: yarn-cache-dir
|
|
|
|
|
- run: |
|
|
|
|
|
- echo "::set-output name=value::`yarn cache dir --silent`"
|
|
|
|
|
|
|
+ - uses: actions/setup-node@v3
|
|
|
|
|
+ with:
|
|
|
|
|
+ node-version: ${{ matrix.node-version }}
|
|
|
|
|
+ cache: 'yarn'
|
|
|
|
|
+ cache-dependency-path: '**/yarn.lock'
|
|
|
|
|
|
|
|
- - name: Cache/Restore dependencies
|
|
|
|
|
|
|
+ - name: Cache/Restore node_modules
|
|
|
|
|
+ id: cache-dependencies
|
|
|
uses: actions/cache@v3
|
|
uses: actions/cache@v3
|
|
|
with:
|
|
with:
|
|
|
path: |
|
|
path: |
|
|
|
**/node_modules
|
|
**/node_modules
|
|
|
- ~/.cache/Cypress
|
|
|
|
|
- ${{ steps.yarn-cache-dir.outputs.value }}
|
|
|
|
|
- key: deps-for-cypress-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('packages/app/package.json') }}
|
|
|
|
|
|
|
+ key: node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('packages/app/package.json') }}
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
- deps-for-cypress-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}-
|
|
|
|
|
- deps-for-cypress-${{ runner.OS }}-node${{ inputs.node-version }}
|
|
|
|
|
|
|
+ node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
|
|
|
|
|
+ node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
|
|
|
|
|
- name: lerna bootstrap
|
|
- name: lerna bootstrap
|
|
|
run: |
|
|
run: |
|
|
@@ -252,14 +247,14 @@ jobs:
|
|
|
- name: Cypress Run
|
|
- name: Cypress Run
|
|
|
uses: cypress-io/github-action@v3
|
|
uses: cypress-io/github-action@v3
|
|
|
with:
|
|
with:
|
|
|
|
|
+ browser: chrome
|
|
|
working-directory: ./packages/app
|
|
working-directory: ./packages/app
|
|
|
- install: false
|
|
|
|
|
spec: '${{ steps.determine-spec-exp.outputs.value }}'
|
|
spec: '${{ steps.determine-spec-exp.outputs.value }}'
|
|
|
start: yarn server
|
|
start: yarn server
|
|
|
wait-on: 'http://localhost:3000'
|
|
wait-on: 'http://localhost:3000'
|
|
|
env:
|
|
env:
|
|
|
- MONGO_URI: mongodb://mongodb:27017/growi-vrt
|
|
|
|
|
- ELASTICSEARCH_URI: http://elasticsearch:9200/growi
|
|
|
|
|
|
|
+ MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi-vrt
|
|
|
|
|
+ ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
|
|
|
|
|
|
- name: Upload results
|
|
- name: Upload results
|
|
|
if: always()
|
|
if: always()
|