-
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (32 loc) · 920 Bytes
/
test-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
name: Test Cloudflare Dev
on:
push:
branches: [dev]
pull_request:
branches: [dev]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Sleep for 130 seconds
run: sleep 130s
shell: bash
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Create env-cf file
run: |
touch .env
echo ENDPOINT=${{ secrets.ENDPOINT }} >> .env
echo REGION=${{ secrets.REGION }} >> .env
echo ACCESS_KEY_ID=${{ secrets.ACCESS_KEY_ID }} >> .env
echo SECRET_ACCESS_KEY=${{ secrets.SECRET_ACCESS_KEY }} >> .env
echo BUCKET_NAME=${{ secrets.BUCKET_NAME }} >> .env
- name: Run e2e tests
run: npm run test:cf