|
|
@@ -43,20 +43,23 @@ jobs:
|
|
|
with:
|
|
|
path: |
|
|
|
**/node_modules
|
|
|
- key: node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
|
|
|
+ !**/node_modules/.cache/turbo
|
|
|
+ key: node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
restore-keys: |
|
|
|
- node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
|
|
|
- node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
+ node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-
|
|
|
+ node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
|
|
|
- - name: Restore dist
|
|
|
- uses: actions/cache/restore@v4
|
|
|
+ - name: Cache/Restore dist
|
|
|
+ uses: actions/cache@v4
|
|
|
with:
|
|
|
path: |
|
|
|
**/.turbo
|
|
|
**/dist
|
|
|
- key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|
|
|
+ **/node_modules/.cache/turbo
|
|
|
+ key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-${{ github.sha }}
|
|
|
restore-keys: |
|
|
|
- dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
+ dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-
|
|
|
+ dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
@@ -78,14 +81,6 @@ jobs:
|
|
|
isCompactMode: true
|
|
|
url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
|
|
- - name: Cache dist
|
|
|
- uses: actions/cache/save@v4
|
|
|
- with:
|
|
|
- path: |
|
|
|
- **/.turbo
|
|
|
- **/dist
|
|
|
- key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|
|
|
-
|
|
|
|
|
|
ci-app-test:
|
|
|
runs-on: ubuntu-latest
|
|
|
@@ -110,25 +105,27 @@ jobs:
|
|
|
cache-dependency-path: '**/yarn.lock'
|
|
|
|
|
|
- name: Cache/Restore node_modules
|
|
|
- id: cache-dependencies
|
|
|
uses: actions/cache@v4
|
|
|
with:
|
|
|
path: |
|
|
|
**/node_modules
|
|
|
- key: node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
|
|
|
+ !**/node_modules/.cache/turbo
|
|
|
+ key: node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
restore-keys: |
|
|
|
- node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
|
|
|
- node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
+ node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-
|
|
|
+ node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
|
|
|
- - name: Restore dist
|
|
|
- uses: actions/cache/restore@v4
|
|
|
+ - name: Cache/Restore dist
|
|
|
+ uses: actions/cache@v4
|
|
|
with:
|
|
|
path: |
|
|
|
**/.turbo
|
|
|
**/dist
|
|
|
- key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|
|
|
+ **/node_modules/.cache/turbo
|
|
|
+ key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-${{ github.sha }}
|
|
|
restore-keys: |
|
|
|
- dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
+ dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-
|
|
|
+ dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
@@ -138,7 +135,7 @@ jobs:
|
|
|
|
|
|
- name: Test
|
|
|
run: |
|
|
|
- turbo run test --filter=!@growi/slackbot-proxy
|
|
|
+ turbo run test --filter=!@growi/slackbot-proxy --env-mode=loose
|
|
|
env:
|
|
|
MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi_test
|
|
|
|
|
|
@@ -160,14 +157,6 @@ jobs:
|
|
|
isCompactMode: true
|
|
|
url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
|
|
- - name: Cache dist
|
|
|
- uses: actions/cache/save@v4
|
|
|
- with:
|
|
|
- path: |
|
|
|
- **/.turbo
|
|
|
- **/dist
|
|
|
- key: dist-app-7.x-ci-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|
|
|
-
|
|
|
|
|
|
ci-app-launch-dev:
|
|
|
runs-on: ubuntu-latest
|
|
|
@@ -192,26 +181,27 @@ jobs:
|
|
|
cache-dependency-path: '**/yarn.lock'
|
|
|
|
|
|
- name: Cache/Restore node_modules
|
|
|
- id: cache-dependencies
|
|
|
uses: actions/cache@v4
|
|
|
with:
|
|
|
path: |
|
|
|
**/node_modules
|
|
|
- key: node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/app/package.json') }}
|
|
|
+ !**/node_modules/.cache/turbo
|
|
|
+ key: node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
restore-keys: |
|
|
|
- node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-
|
|
|
- node_modules-7.x-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
+ node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-
|
|
|
+ node_modules-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
|
|
|
- - name: Restore dist
|
|
|
- uses: actions/cache/restore@v4
|
|
|
+ - name: Cache/Restore dist
|
|
|
+ uses: actions/cache@v4
|
|
|
with:
|
|
|
path: |
|
|
|
**/.turbo
|
|
|
**/dist
|
|
|
- ${{ github.workspace }}/apps/app/.next
|
|
|
- key: dist-app-7.x-dev-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|
|
|
+ **/node_modules/.cache/turbo
|
|
|
+ key: dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-${{ github.sha }}
|
|
|
restore-keys: |
|
|
|
- dist-app-7.x-dev-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
+ dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-${{ github.ref_name }}-
|
|
|
+ dist-ci-app-${{ runner.OS }}-node${{ matrix.node-version }}-
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
@@ -223,7 +213,7 @@ jobs:
|
|
|
working-directory: ./apps/app
|
|
|
run: |
|
|
|
cp config/ci/.env.local.for-ci .env.development.local
|
|
|
- turbo run dev:ci
|
|
|
+ turbo run dev:ci --env-mode=loose
|
|
|
env:
|
|
|
MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi_dev
|
|
|
|
|
|
@@ -236,12 +226,3 @@ jobs:
|
|
|
channel: '#ci'
|
|
|
isCompactMode: true
|
|
|
url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
-
|
|
|
- - name: Cache dist
|
|
|
- uses: actions/cache/save@v4
|
|
|
- with:
|
|
|
- path: |
|
|
|
- **/.turbo
|
|
|
- **/dist
|
|
|
- ${{ github.workspace }}/apps/app/.next
|
|
|
- key: dist-app-7.x-dev-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|