Skip to content

Commit 5596f8b

Browse files
committed
feat: run tests every sunday, #134
1 parent b1254f4 commit 5596f8b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/scheduled-test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Runs tests on the app by schedule
2+
name: Test App on Schedule
3+
4+
on:
5+
schedule:
6+
# Runs "At 04:05 on Sunday."
7+
- cron: '5 4 * * 0'
8+
9+
jobs:
10+
pull-images:
11+
name: Scheduled Test
12+
runs-on: ubuntu-latest
13+
env:
14+
EXCEL_FILE_URL: ${{ secrets.EXCEL_FILE_URL }}
15+
SHEETJS_COLUMN: ${{ secrets.SHEETJS_COLUMN }}
16+
SORT_ALPHABETICAL: ${{ secrets.SORT_ALPHABETICAL }}
17+
SPECIAL_CHARACTERS: ${{ secrets.SPECIAL_CHARACTERS }}
18+
steps:
19+
- name: Checkout the repository
20+
uses: actions/checkout@v3
21+
with:
22+
ref: ${{ github.event.release.tag_name }}
23+
24+
- name: Use NodeJS v16.14.2
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 16.14.2
28+
29+
- name: Install Dependencies and Test
30+
run: |
31+
cd app
32+
npm install
33+
npm test

0 commit comments

Comments
 (0)