attempting to add some caching and speed up the delay
这个提交包含在:
父节点
08c5e4420f
当前提交
485c21a1eb
共有 1 个文件被更改,包括 24 次插入 和 5 次删除
29
.github/workflows/cypress-tests.yml
vendored
29
.github/workflows/cypress-tests.yml
vendored
|
|
@ -7,20 +7,39 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Cache Cypress
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/Cypress
|
||||||
|
key: cypress-${{ hashFiles('package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
cypress-
|
||||||
|
|
||||||
|
- name: Install Cypress
|
||||||
|
run: npm install cypress
|
||||||
|
|
||||||
|
- name: Cache .env
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: .env
|
||||||
|
key: .env-${{ hashFiles('.env.sample') }}
|
||||||
|
restore-keys: |
|
||||||
|
.env-
|
||||||
|
|
||||||
- name: Setup .env
|
- name: Setup .env
|
||||||
run: cp .env.sample .env
|
run: |
|
||||||
|
if [ ! -f .env ]; then
|
||||||
|
cp .env.sample .env
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build Docker services
|
- name: Build Docker services
|
||||||
run: docker-compose up -d
|
run: docker-compose up -d
|
||||||
|
|
||||||
- name: Wait for services to start
|
- name: Wait for services to start
|
||||||
run: sleep 10
|
run: sleep 3
|
||||||
|
|
||||||
- name: Populate dxcc_entities table
|
- name: Populate dxcc_entities table
|
||||||
run: curl "http://localhost/index.php/update/dxcc"
|
run: curl "http://localhost/index.php/update/dxcc"
|
||||||
|
|
||||||
- name: Install Cypress
|
|
||||||
run: npm install cypress
|
|
||||||
|
|
||||||
- name: Run Cypress tests
|
- name: Run Cypress tests
|
||||||
run: npx cypress run
|
run: npx cypress run
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用