Skip to content

Commit 1ec070f

Browse files
New workflow to run tests on scheduled manner
1 parent 8fd0ce1 commit 1ec070f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Nightly Workflow
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20.x'
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Run Sanity Tests
23+
run: |
24+
npm run test:sanity
25+
;;
26+
esac
27+
env:
28+
CI: true
29+
30+
- name: Upload test results
31+
uses: actions/upload-artifact@v4
32+
if: always()
33+
with:
34+
name: test-results
35+
path: test-report.html

0 commit comments

Comments
 (0)