Skip to content

Commit 1aeec1c

Browse files
committed
[UPD] ci to have a new weekly full test run
1 parent 49b3a23 commit 1aeec1c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

lib/content/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,33 @@ jobs:
7575
DOTENV_KEY: ${{ secrets.DOTENV_KEY }}
7676
<%/env_vault%>
7777
run: npm test --ignore-scripts
78+
79+
weekly_test:
80+
name: Weekly Full Test
81+
runs-on: ubuntu-latest
82+
if: github.event_name == 'schedule'
83+
defaults:
84+
run:
85+
shell: bash
86+
steps:
87+
- name: Checkout
88+
uses: actions/checkout@v3
89+
- name: Setup node
90+
uses: actions/setup-node@v3
91+
with:
92+
node-version: 18.x
93+
- name: Update npm
94+
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
95+
- name: Install dependencies
96+
run: npm i --no-audit --no-fund
97+
- name: Check if test:full is defined
98+
id: check_test_full
99+
run: |
100+
if grep -q '"test:full":' package.json; then
101+
echo "::set-output name=exists::true"
102+
else
103+
echo "::set-output name=exists::false"
104+
fi
105+
- name: Run Full Test
106+
if: steps.check_test_full.outputs.exists == 'true'
107+
run: npm run test:full --ignore-scripts

0 commit comments

Comments
 (0)