forked from sentienhq/ultralight-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.08 KB
/
test-runner-cf-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test Runner (dev:Cloudflare)
on:
push:
branches: [dev]
pull_request:
branches: [dev]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 16
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Create env-cf file
run: |
touch .env-cf
echo ENDPOINT=${{ secrets.ENDPOINT }} >> .env-cf
echo REGION=${{ secrets.REGION }} >> .env-cf
echo ACCESS_KEY_ID=${{ secrets.ACCESS_KEY_ID }} >> .env-cf
echo SECRET_ACCESS_KEY=${{ secrets.SECRET_ACCESS_KEY }} >> .env-cf
echo BUCKET_NAME=${{ secrets.BUCKET_NAME }} >> .env-cf
echo TOKEN_VALUE=${{ secrets.TOKEN_VALUE }} >> .env-cf
- name: Run e2e tests
uses: nick-fields/[email protected]
with:
max_attempts: 3
retry_on: any
timeout_minutes: 5
retry_wait_seconds: 20
command: npm run test:cloudflare